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 bool value.

説明

Use this method to set the value of a bool with the name you pass in.