cloth.enabled 启用?

2015-1-4 13:37| 发布者: 杨炎| 查看: 1516| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: cloth.enabled 启用?varenabled: booldescription描述is this cloth enabled?是否启用这个布料?this is the same as the checkbox next to the component label in the inspector. a disabled cloth component will ...

cloth.enabled 启用?

varenabled: bool

description描述

is this cloth enabled?

是否启用这个布料?

this is the same as the checkbox next to the component label in the inspector. a disabled cloth component will not update it's physics simulation, so you can use this to suspend the simulation of cloth objects when they are not needed, as cloth simulation is a very cpu-intensive task.

这如同component旁的复选框一样。一个使布料组件不更新的属性,所以你可以在不需要的时候用这个终止;布料模拟是一个非常耗资源的任务。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

getcomponent().enabled = false;

}

}

getcomponent(interactivecloth).enabled = false;

相关阅读

文章点评
相关文章