/*--------------------------------------------------------------------------------------------*/ 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; } }
/*--------------------------------------------------------------------------------------------*/ public virtual void SetDepthHint(int pDepthHint) { vHoverSlice.SetDepthHint(pDepthHint); vLabel.SetDepthHint(pDepthHint); }
/*--------------------------------------------------------------------------------------------*/ public virtual void SetDepthHint(int pDepthHint) { vHoverSlice.SetDepthHint(pDepthHint); vIcon.GetComponent <MeshRenderer>().sharedMaterial = Materials.GetLayer(Materials.Layer.Icon, pDepthHint, "StandardIcons"); }