behaviour.enabled 行为启用

2015-1-3 16:27| 发布者: 杨炎| 查看: 1251| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: behaviour.enabled 行为启用varenabled: booldescription描述enabled behaviours are updated, disabled behaviours are not.启用行为被更新,禁用行为不更新。this is shown as the small checkbox in the inspecto ...

behaviour.enabled 行为启用

varenabled: bool

description描述

enabled behaviours are updated, disabled behaviours are not.

启用行为被更新,禁用行为不更新。

this is shown as the small checkbox in the inspector of the behaviour.

在行为检视面板显示为小的复选框。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

getcomponent().enabled = false;

}

}

getcomponent(playerscript).enabled = false;

相关阅读

文章点评
相关文章