Whether the component is a singleton, meaning only one instance of this type of script can be added to the same node.
Zh
是否为单例,即同一个节点只能添加此类型的脚本一次。
anchor
anchor:any[] = ...
En
Link points of joints, it is offset from the position of the upper left corner of its own rigid body. This setting is effective only on the first assignment.
Zh
[首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移。
collideConnected
collideConnected:boolean = false
En
Specifies whether the two connected rigid bodies can collide with each other. Default is false. This setting is effective only on the first assignment.
Checks if the component has a specific hide flag set.
Zh
检查组件是否设置了特定的隐藏标志。
isValid
isValid(): boolean
返回 boolean
onAdded
onAdded(): void
返回 void
En
Called after the component is added to a node. Unlike Awake, onAdded is called even if the node is not active.
Zh
组件被添加到节点后调用,与 onAwake 不同的是,即使节点未激活也会调用 onAdded。
Blueprint Event
onAwake
onAwake(): void
返回 void
En
Executed after the component is activated. At this point, all nodes and components have been created. This method is executed only once.
Zh
组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次。
Blueprint Event
onDestroy
onDestroy(): void
返回 void
En
Executed when the node is destroyed manually.
Zh
手动调用节点销毁时执行。
Blueprint Event
onDisable
onDisable(): void
返回 void
En
Executed when the component is disabled, such as when the node is removed from the stage.
Zh
组件被禁用时执行,比如从节点从舞台移除后。
Blueprint Event
onEnable
onEnable(): void
返回 void
En
Executed after the component is enabled, such as when the node is added to the stage.
Zh
组件被启用后执行,比如节点被添加到舞台后。
Blueprint Event
可选onLateUpdate
onLateUpdate(): void
返回 void
En
Executed every frame during the late update phase, after the update phase.
Zh
每帧更新时执行,在 late update 阶段,update 阶段之后。
Blueprint Event
可选onPostRender
onPostRender(): void
返回 void
En
Executed after rendering.
Zh
渲染之后执行。
Blueprint Event
可选onPreRender
onPreRender(): void
返回 void
En
Executed before rendering.
Zh
渲染之前执行。
Blueprint Event
可选onReset
onReset(): void
返回 void
En
Resets the component's parameters to their default values. If this function is implemented, the component will be reset and automatically recycled for future use.
If not reset, it will not be recycled for reuse.
En
Rotating joint forces two objects to share an anchor point, and the two objects rotate relative to each other
Zh
旋转关节强制两个物体共享一个锚点,两个物体相对旋转