DiamondRenderer









How do I use Diamond Renderer
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: PlayerDiamond.cs Copy
28     {
29         get
30         {
31             if( m_DiamondRenderer == null )
32             {
33                 m_DiamondRenderer = GetComponentInChildren();
34             }
35
36             return m_DiamondRenderer;
37         }
38     }
File name: PlayerDiamond.cs Copy
87     void UpdateDiamondVisibility()
88     {
89         DiamondRenderer.enabled = true;
90
91         if( PhotonView == null || PhotonView.isMine == false )
92         {
93             DiamondRenderer.enabled = false;
94         }
95     }

DiamondRenderer 105 lượt xem

Gõ tìm kiếm nhanh...