Version: 2019.4
public void SetBool (int nameID, bool b);
public void SetBool (string name, bool b);

パラメーター

nameIDThe ID of the property. This is the same ID that Shader.PropertyToID returns.
nameプロパティーの名前
bThe new boolean value.

説明

The new bool value.

Automatically changes overridden state for this property to true.