Experimental: this API is experimental and might be changed or removed in the future.

VisualEffect.SetBool

Switch to Manual
public void SetBool (int nameID, bool b);
public void SetBool (string name, bool b);

Parameters

nameID通过 Shader.PropertyToID 检索的属性的名称 ID。
name属性的名称。
bThe new boolean value.

Description

Sets the value for a named boolean.

Automatically changes overridden state for this property to true.