Exemple #1
0
 public string GetName(IAssetContainer file)
 {
     if (file.Layout.PrefabInstance.IsModificationFormat)
     {
         return(RootGameObject.GetAsset(file).Name);
     }
     else
     {
         return(Name);
     }
 }
Exemple #2
0
 public string GetName(ISerializedFile file)
 {
     if (IsModificationsFormat(file.Version))
     {
         return(RootGameObject.GetAsset(file).Name);
     }
     else
     {
         return(Name);
     }
 }
Exemple #3
0
        public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false)
        {
            foreach (Object asset in base.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }

            yield return(ParentPrefab.GetAsset(file));

            yield return(RootGameObject.GetAsset(file));
        }
Exemple #4
0
 public IEnumerable <EditorExtension> FetchObjects(IAssetContainer file)
 {
     if (IsModificationsFormat(file.Version))
     {
         GameObject root = RootGameObject.GetAsset(file);
         foreach (EditorExtension asset in root.FetchHierarchy())
         {
             yield return(asset);
         }
     }
     else
     {
         foreach (PPtr <EditorExtension> asset in Objects)
         {
             yield return(asset.GetAsset(file));
         }
     }
 }
Exemple #5
0
        public IEnumerable <EditorExtension> FetchObjects(IAssetContainer file)
        {
#warning TEMP HACK:
            //if (file.Layout.PrefabInstance.IsModificationFormat)
            {
                foreach (EditorExtension asset in RootGameObject.GetAsset(file).FetchHierarchy())
                {
                    yield return(asset);
                }
            }

            /*else
             * {
             *      foreach (PPtr<EditorExtension> asset in Objects)
             *      {
             *              yield return asset.GetAsset(file);
             *      }
             * }*/
        }
Exemple #6
0
        public IEnumerable <EditorExtension> FetchObjects(IAssetContainer file)
        {
#warning TEMP HACK:
            //if (IsModificationsFormat(file.Version))
            {
                GameObject root = RootGameObject.GetAsset(file);
                foreach (EditorExtension asset in root.FetchHierarchy())
                {
                    yield return(asset);
                }
            }

            /*else
             * {
             *      foreach (PPtr<EditorExtension> asset in Objects)
             *      {
             *              yield return asset.GetAsset(file);
             *      }
             * }*/
        }
Exemple #7
0
 public string GetName(ISerializedFile file)
 {
     return(RootGameObject.GetAsset(file).Name);
 }
Exemple #8
0
        public IEnumerable <EditorExtension> FetchObjects(IAssetContainer file)
        {
            GameObject root = RootGameObject.GetAsset(file);

            return(FetchAssets(root));
        }
Exemple #9
0
 public string GetName()
 {
     return(RootGameObject.GetAsset(File).Name);
 }
Exemple #10
0
        public IEnumerable <EditorExtension> FetchObjects(ISerializedFile file, bool isLog = false)
        {
            GameObject root = RootGameObject.GetAsset(file);

            return(FetchObjects(root));
        }