示例#1
0
        public void Load(TextAsset ta, Planet livePreview)
        {
            if (ta == null)
            {
                return;
            }
            savepath = AssetDatabase.GetAssetPath(ta);

            windows.Clear();
            settings = TerrainModule.LoadTextAsset(ta, true, 0, 1f);
            if (settings != null)
            {
                foreach (Node n in settings.nodes)
                {
                    NodeWindow nw = new NodeWindow(n);

                    if (n is OutputNode)
                    {
                        nw.livePreview = livePreview;
                    }

                    windows.Add(nw);
                }
            }
        }
示例#2
0
        public void Load(TextAsset ta, Planet livePreview)
        {
            if(ta == null)
            return;
            savepath = AssetDatabase.GetAssetPath(ta);

            windows.Clear();
            settings = TerrainModule.LoadTextAsset(ta, true, 0, 1f);
            if(settings != null) {
            foreach(Node n in settings.nodes) {
                NodeWindow nw = new NodeWindow(n);

                if(n is OutputNode)
                    nw.livePreview = livePreview;

                windows.Add(nw);
            }
            }
        }