Version 3.3.1.2

OdinPrefabUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class OdinPrefabUtility
Inheritance
  • System.Object
  • OdinPrefabUtility

Methods

GetNearestPrefabAsset(Object)
public static GameObject GetNearestPrefabAsset(Object obj)
Parameters
UnityEngine.Object obj

Returns
UnityEngine.GameObject

GetPrefabKind(InspectorProperty)
public static PrefabKind GetPrefabKind(InspectorProperty prop)
Parameters
InspectorProperty prop

Returns
PrefabKind

GetPrefabKind(Object)
public static PrefabKind GetPrefabKind(Object obj)
Parameters
UnityEngine.Object obj

Returns
PrefabKind

OpenPrefabStage(String, GameObject)
public static GameObject OpenPrefabStage(string prefabAssetPath, GameObject openedFromInstance)
Parameters
System.String prefabAssetPath

UnityEngine.GameObject openedFromInstance

Returns
UnityEngine.GameObject

UpdatePrefabInstancePropertyModifications(Object, Boolean)
public static void UpdatePrefabInstancePropertyModifications(Object prefabInstance, bool withUndo)
Parameters
UnityEngine.Object prefabInstance

System.Boolean withUndo