文档

Unity Engine

Unity Engine

HasSystem

Use this function to determine if the VisualEffect has the system you pass in.
阅读时间1 分钟最后更新于 1 个月前

Definition

HasSystem(int)

Use this function to determine if the VisualEffect has the system you pass in.
public bool HasSystem(int nameID)

Parameters

nameID

The system ID. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

booltrue if the VisualEffect has the system you pass in. Returns false otherwise.

HasSystem(string)

Use this function to determine if the VisualEffect has the system you pass in.
public bool HasSystem(string name)

Parameters

name

The name of the property.

Returns

Type

Description

booltrue if the VisualEffect has the system you pass in. Returns false otherwise.