SynchronizedLayer
How do I use Synchronized Layer
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
136 |
public List |
1 |
200 | m_SynchronizeLayers.Add( new SynchronizedLayer { LayerIndex = layerIndex, SynchronizeType = synchronizeType } ); | 2 |
File name: PhotonAnimatorView.cs
Copy
136 public List137 {
138 return m_SynchronizeLayers;
139 }
File name: PhotonAnimatorView.cs
Copy
189 public void SetLayerSynchronized( int layerIndex, SynchronizeType synchronizeType )
190 {
191 if( Application.isPlaying == true )
192 {
193 m_WasSynchronizeTypeChanged = true;
194 }
195
196 int index = m_SynchronizeLayers.FindIndex( item => item.LayerIndex == layerIndex );
197
198 if( index == -1 )
199 {
200 m_SynchronizeLayers.Add( new SynchronizedLayer { LayerIndex = layerIndex, SynchronizeType = synchronizeType } );
201 }
202 else
203 {
204 m_SynchronizeLayers[ index ].SynchronizeType = synchronizeType;
205 }
206 }
SynchronizedLayer 153 lượt xem
Gõ tìm kiếm nhanh...