ドキュメント

Unity Engine

Unity Engine

SetBool

Sets the value of a named bool property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetBool(int, bool)

Sets the value of a named bool property.
public void SetBool(int nameID, bool b)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new boolean value.

Remarks

Automatically changes overridden state for this property to true.

SetBool(string, bool)

Sets the value of a named bool property.
public void SetBool(string name, bool b)

Parameters

name

The name of the property.

The new boolean value.

Remarks

Automatically changes overridden state for this property to true.