public string GetName(IAssetContainer file) { if (file.Layout.PrefabInstance.IsModificationFormat) { return(RootGameObject.GetAsset(file).Name); } else { return(Name); } }
public string GetName(ISerializedFile file) { if (IsModificationsFormat(file.Version)) { return(RootGameObject.GetAsset(file).Name); } else { return(Name); } }
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)); }
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)); } } }
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); * } * }*/ }
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); * } * }*/ }
public string GetName(ISerializedFile file) { return(RootGameObject.GetAsset(file).Name); }
public IEnumerable <EditorExtension> FetchObjects(IAssetContainer file) { GameObject root = RootGameObject.GetAsset(file); return(FetchAssets(root)); }
public string GetName() { return(RootGameObject.GetAsset(File).Name); }
public IEnumerable <EditorExtension> FetchObjects(ISerializedFile file, bool isLog = false) { GameObject root = RootGameObject.GetAsset(file); return(FetchObjects(root)); }