ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


SetBool

Use this method to set the value of a bool with the name you pass in.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetBool(int, bool)

Use this method to set the value of a bool with the name you pass in.
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 bool value.

SetBool(string, bool)

Use this method to set the value of a bool with the name you pass in.
public void SetBool(string name, bool b)

Parameters

name

The name of the property.

The new bool value.