找回密碼
 注冊帳號

掃一掃,訪問微社區

behaviour.enabled 行為啟用

2015-1-3 16:27| 發布者: 楊炎| 查看: 1465| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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;

相關閱讀

文章點評
相關文章
女校游泳队彩金