示例#1
0
        /*--------------------------------------------------------------------------------------------*/
        public virtual void SetDepthHint(int pDepthHint)
        {
            vTrack.SetDepthHint(pDepthHint);
            vHover.SetDepthHint(pDepthHint);
            vGrab.SetDepthHint(pDepthHint);

            var tickMat = Materials.GetLayer(Materials.Layer.Ticks, pDepthHint);

            foreach (GameObject tickObj in vTicks)
            {
                GameObject quadObj = tickObj.transform.GetChild(0).gameObject;
                quadObj.GetComponent <MeshRenderer>().sharedMaterial = tickMat;
            }
        }