Editor Adapter component for GameObjectExtensions. It allows GameObjectExtensions to potentially call certain editor function, when actually running in the editor, without the need to actually reference the editor dll Upon InitializeOnLoadMethod, this class will assign these editor functions to a delegate found in the GameObjectExtensions class. If NOT in the editor, these delegates will NOT have functions assigned to them, and so will not be invoked by GameObjectExtensions.
Static Public Member Functions | |
static bool | IsObjectAnAsset (Object testObject) |
Accessible inside of Editor only code, this function will return false when not running in the Editor. When running in the editor, uses AssetDatabase.GetPath to test, and returns the result. | |
static bool | IsObjectAPreFab (Object testObject) |
Checks if the referenced object is a reference to a saved PreFabObject. | |