Class ObjectFactory
Inheritance
ObjectFactory
Assembly: UnityEditor.dll
Syntax
public static class ObjectFactory
Methods
|
Improve this Doc
View Source
AddComponent(GameObject, Type)
Declaration
public static Component AddComponent(GameObject gameObject, Type type)
Parameters
Returns
|
Improve this Doc
View Source
AddComponent<T>(GameObject)
Declaration
public static T AddComponent<T>(GameObject gameObject)
where T : Component
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
CreateGameObject(String, Type[])
Declaration
public static GameObject CreateGameObject(string name, params Type[] types)
Parameters
Returns
|
Improve this Doc
View Source
CreateInstance(Type)
Declaration
public static Object CreateInstance(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
CreateInstance<T>()
Declaration
public static T CreateInstance<T>()
where T : Object
Returns
Type Parameters
|
Improve this Doc
View Source
CreatePrimitive(PrimitiveType)
Declaration
public static GameObject CreatePrimitive(PrimitiveType type)
Parameters
Returns
Events
|
Improve this Doc
View Source
componentWasAdded
Declaration
public static event Action<Component> componentWasAdded
Event Type