C# Class FullInspector.Internal.fiLateBindings.PrefabUtility

显示文件 Open project: jacobdufault/fullinspector

Public Methods

Method Description
CreatePrefab ( string path, GameObject template ) : GameObject
IsPrefab ( Object unityObject ) : bool

Returns true if UnityEditor.PrefabUtility.GetPrefabType(unityObj) == UnityEditor.PrefabType.Prefab

IsPrefabInstance ( Object unityObject ) : bool

Method Details

CreatePrefab() public static method

public static CreatePrefab ( string path, GameObject template ) : GameObject
path string
template UnityEngine.GameObject
return UnityEngine.GameObject

IsPrefab() public static method

Returns true if UnityEditor.PrefabUtility.GetPrefabType(unityObj) == UnityEditor.PrefabType.Prefab
public static IsPrefab ( Object unityObject ) : bool
unityObject UnityEngine.Object
return bool

IsPrefabInstance() public static method

public static IsPrefabInstance ( Object unityObject ) : bool
unityObject UnityEngine.Object
return bool