private void ShowMask() { if (m_LucencyType == LucencyType.Translucence) { if (m_blurTextureOnce == null) { m_UIMask = UIModule.GetUIMask(); m_blurTextureOnce = m_UIMask.GetComponent <BlurTextureOnce>(); m_blurTextureOnce.Init(); } m_UIMask.transform.localPosition = Vector3.zero; // 移走自己,以防被相机拍到 MoveFarAway(true); m_blurTextureOnce.GenerateRender(); MoveFarAway(false); } if (m_UIMask != null) { m_UIMask.GetComponent <RawImage>().raycastTarget = m_raycast; } if (m_raycast) { ClickListener.AddClick(m_blurTextureOnce, OnClickMask); } }