标签:cursor object change manage ever his bug 打开 name
layer表示0-31的数字,是层。
而如果定义了layermask,layermask多了everything和nothing
layer的数值,参考右上叫的layer,打开add layer来看.
判断一个物体的在不在layermask中。
if ((GazeManager.Instance.RaycastLayerMask & (1 << this.gameObject.layer)) != 0) { Debug.LogError("The cursor has a layer that is checked in the GazeManager‘s Raycast Layer Mask. Change the cursor layer (e.g.: to Ignore Raycast) or uncheck the layer in GazeManager: " + LayerMask.LayerToName(this.gameObject.layer)); }
如果raycast用layermask,选中的表示都要射到!
标签:cursor object change manage ever his bug 打开 name
原文地址:http://www.cnblogs.com/ptqueen/p/6626444.html