Projector.ignoreLayers 忽略层
var ignoreLayers : int
Description描述
Which object layers are ignored by the projector.
哪个物体层被这个投射器忽略。
By default this is zero - i.e. no layers are ignored. Each set bit in ignoreLayers will make this layer not affected by the projector.
默认为0,没有层被忽略,在ignoreLayers中设置的每部分将使这个层不会被投射器影响。
function Start() {
var proj : Projector = GetComponent (Projector);
// Make the projector ignore Default (0) layer
//使投影器忽略默认的(0)层
proj.ignoreLayers = (1<<0);
}
最后修改:2011年3月19日 Saturday 16:06