This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MapGenerator = UGameObject:extend() | |
function MapGenerator:new(scene, opts) | |
MapGenerator.super.new(self, scene, 'Prefabs/MapGenerator', opts) | |
self.transform.position = Vector3.new(-100, 0, 0) | |
self:clear() | |
--找到scene里GameObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.IO; | |
public static class UnityUtil | |
{ | |
public static string GetSelectedPathOrFallback() | |
{ | |
string path = "Assets"; |