コード例 #1
0
 public void Dispose()
 {
     if (!isValid)
     {
         GNativeArrayUtilities.Dispose(data);
     }
 }
コード例 #2
0
ファイル: GTerrainChunk.cs プロジェクト: ComradeCrunchy/Ranch
 internal void CleanUpNativeArrays()
 {
     GNativeArrayUtilities.Dispose(subdivNodeNativeArray);
     GNativeArrayUtilities.Dispose(subdivNodeCreationState);
     GNativeArrayUtilities.Dispose(vertexNativeArray);
     GNativeArrayUtilities.Dispose(uvsNativeArray);
     GNativeArrayUtilities.Dispose(normalsNativeArray);
     GNativeArrayUtilities.Dispose(trianglesNativeArray);
     GNativeArrayUtilities.Dispose(vertexColorsNativeArray);
     GNativeArrayUtilities.Dispose(generationMetadata);
     GNativeArrayUtilities.Dispose(vertexMarkerNativeArray);
 }