LastFrameCount
How do I use Last Frame Count
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
80 | m_LastFrameCount = -1; | 1 |
91 | if( Time.frameCount != m_LastFrameCount ) | 2 |
File name: PhotonStreamQueue.cs
Copy
74 public void Reset()
75 {
76 m_SampleCount = 0;
77 m_ObjectsPerSample = -1;
78
79 m_LastSampleTime = -Mathf.Infinity;
80 m_LastFrameCount = -1;
81
82 m_Objects.Clear();
83 }
File name: PhotonStreamQueue.cs
Copy
89 public void SendNext( object obj )
90 {
91 if( Time.frameCount != m_LastFrameCount )
92 {
93 BeginWritePackage();
94 }
95
96 m_LastFrameCount = Time.frameCount;
97
98 if( m_IsWriting == false )
99 {
100 return;
101 }
102
103 m_Objects.Add( obj );
104 }
LastFrameCount 119 lượt xem
Gõ tìm kiếm nhanh...