Ejemplo n.º 1
0
 public static T DisplayWizard <T>(string title, string createButtonName, string otherButtonName) where T : ScriptableWizard
 {
     return((T)ScriptableWizard.DisplayWizard(title, typeof(T), createButtonName, otherButtonName));
 }
Ejemplo n.º 2
0
        public static ScriptableWizard DisplayWizard(string title, System.Type klass, string createButtonName)
        {
            string empty = string.Empty;

            return(ScriptableWizard.DisplayWizard(title, klass, createButtonName, empty));
        }
Ejemplo n.º 3
0
 public static T DisplayWizard <T>(string title) where T : ScriptableWizard
 {
     return(ScriptableWizard.DisplayWizard <T>(title, "Create", string.Empty));
 }
Ejemplo n.º 4
0
 public static T DisplayWizard <T>(string title, string createButtonName) where T : ScriptableWizard
 {
     return(ScriptableWizard.DisplayWizard <T>(title, createButtonName, string.Empty));
 }
Ejemplo n.º 5
0
 private static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <RagdollBuilder>("Create Ragdoll");
 }
Ejemplo n.º 6
0
        internal static void Flatten()
        {
            FlattenHeightmap flattenHeightmap = ScriptableWizard.DisplayWizard <FlattenHeightmap>("Flatten Heightmap", "Flatten");

            flattenHeightmap.InitializeDefaults(TerrainMenus.GetActiveTerrain());
        }
Ejemplo n.º 7
0
        internal static void MassPlaceTrees()
        {
            PlaceTreeWizard placeTreeWizard = ScriptableWizard.DisplayWizard <PlaceTreeWizard>("Place Trees", "Place");

            placeTreeWizard.InitializeDefaults(TerrainMenus.GetActiveTerrain());
        }
Ejemplo n.º 8
0
        internal static void SetHeightmapResolution()
        {
            SetResolutionWizard setResolutionWizard = ScriptableWizard.DisplayWizard <SetResolutionWizard>("Set Heightmap resolution", "Set Resolution");

            setResolutionWizard.InitializeDefaults(TerrainMenus.GetActiveTerrain());
        }
Ejemplo n.º 9
0
        internal static void ExportHeightmapRaw()
        {
            ExportRawHeightmap exportRawHeightmap = ScriptableWizard.DisplayWizard <ExportRawHeightmap>("Export Heightmap", "Export");

            exportRawHeightmap.InitializeDefaults(TerrainMenus.GetActiveTerrain());
        }