文档

Unity Engine

Unity Engine

Behaviour

Behaviours are Components that can be enabled or disabled.
阅读时间6 分钟最后更新于 1 个月前

Definition

public class Behaviour : Component

Remarks

Additional Resources: MonoBehaviour and Component.

Properties

Property

Description

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledChecks whether a component is enabled, attached to a GameObject that is active in the hierarchy, and the component's OnEnable has been called.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.