Beispiel #1
0
 public void UpdateMapIfMine(Height2NormalMapAsset asset)
 {
     if (asset == heightMap2NormalMapAsset)
     {
         UpdateMap();
     }
 }
 private void OnEnable()
 {
     serializedObject.Update();
     mapCreator = this.target as Height2NormalMapAsset;
     mapCreator.RevertEditProperty();
     rTex = new RenderTexture(256, 256, 0);
     EditorUtility.SetDirty(mapCreator);
     serializedObject.ApplyModifiedProperties();
 }