public static void Show(TiledNoise noise) { var window = CreateInstance <TiledNoiseEditor>(); window.noise = noise; window.titleContent = new GUIContent("Edit noise"); window.maxSize = new Vector2(360f, 155f); window.minSize = window.maxSize; window.ShowAuxWindow(); }
public static void Draw(TiledNoise noise) { if (noise is PinkTiledNoise) { DrawPinkNoise(noise as PinkTiledNoise); } else { throw new Exception("Unknown type of TiledNoise: " + noise.GetType()); } }