/*--------------------------------------------------------------------------------------------*/ public virtual void SetDepthHint(int pDepthHint) { vHiddenRect.SetDepthHint(pDepthHint); vHover.SetDepthHint(pDepthHint); vGrab.SetDepthHint(pDepthHint); vTrack.SetDepthHint(pDepthHint); var tickMat = Materials.GetLayer(Materials.Layer.Ticks, pDepthHint); foreach (GameObject tickObj in vTicks) { tickObj.GetComponent <MeshRenderer>().sharedMaterial = tickMat; } }
/*--------------------------------------------------------------------------------------------*/ public virtual void SetDepthHint(int pDepthHint) { vHoverRect.SetDepthHint(pDepthHint); vLabel.SetDepthHint(pDepthHint); }