Exemplo n.º 1
0
        public static Tileset CreateTileset()
        {
            Texture2D selectedAtlas = Selection.activeObject as Texture2D;

            if (selectedAtlas)
            {
                Tileset newTileset = EditorUtils.CreateAssetInSelectedDirectory <Tileset>(selectedAtlas.name);
                newTileset.AtlasTexture = selectedAtlas;
                return(newTileset);
            }
            else
            {
                return(EditorUtils.CreateAssetInSelectedDirectory <Tileset>());
            }
        }
Exemplo n.º 2
0
 public static RandomBrush CreateAsset()
 {
     return(EditorUtils.CreateAssetInSelectedDirectory <RandomBrush>());
 }
Exemplo n.º 3
0
        public static RoadBrush CreateAsset()
        {
            RoadBrush brush = EditorUtils.CreateAssetInSelectedDirectory <RoadBrush>();

            return(brush);
        }
Exemplo n.º 4
0
 public static Tileset CreateTileset()
 {
     return(EditorUtils.CreateAssetInSelectedDirectory <Tileset>());
 }
Exemplo n.º 5
0
        public static CarpetBrush CreateAsset()
        {
            CarpetBrush brush = EditorUtils.CreateAssetInSelectedDirectory <CarpetBrush>();

            return(brush);
        }
Exemplo n.º 6
0
        public static BrushFortySeven CreateAsset()
        {
            BrushFortySeven brush = EditorUtils.CreateAssetInSelectedDirectory <BrushFortySeven>();

            return(brush);
        }