文档

Unity Engine

Unity Engine

SetBool(AnimationStream, bool)

Sets the boolean property value to an object in the Scene.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Removed. SceneHandle is now read-only; it was problematic with the engine multithreading and determinism
public void SetBool(AnimationStream stream, bool value)

Parameters

The AnimationStream managing this handle.

value

The new boolean property value.

Remarks

If the property is not a boolean, the method will throw an
InvalidOperationException
.