文档

支持

Unity Studio

Open Unity Studio

Unity Studio

Enabled node

Node triggers when a GameObject is enabled or disabled.
阅读时间1 分钟最后更新于 5 个月前

Use the Enabled node to detect when an object’s active state is enabled. The node triggers when it detects changes and lets you know whether the object is currently enabled.

Sockets

Socket

Type

Description

Object
GameObject
Detect when this object's enabled or disabled state changes.
Enabled State
Bool (output)
Outputs true when the object is enabled, and false when it’s disabled. To check if the object is disabled, combine this node’s output with the Not node.