Version: 2020.1
言語: 日本語
public void SetBool (string name, bool value);
public void SetBool (int id, bool value);

パラメーター

name The parameter name.
id The parameter ID.
value The new parameter value.

説明

Sets the value of the given boolean parameter.

Use AnimatorControllerPlayable.SetBool to pass Boolean values to an Animator Controller via script.

Use this to trigger transitions between states. For example, triggering a death animation by setting an “alive” boolean to false. See documentation on Animation for more information on setting up Animators.

Note: You can identify the parameter by name or by ID number, but the name or ID number must be the same as the parameter you want to change in the AnimatorController.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961