Show / Hide Table of Contents

Class ObjectFactory

Inheritance
Object
ObjectFactory
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
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
Type Name Description
GameObject gameObject
Type type
Returns
Type Description
Component
| Improve this Doc View Source

AddComponent<T>(GameObject)

Declaration
public static T AddComponent<T>(GameObject gameObject)
    where T : Component
Parameters
Type Name Description
GameObject gameObject
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

CreateGameObject(String, Type[])

Declaration
public static GameObject CreateGameObject(string name, params Type[] types)
Parameters
Type Name Description
String name
Type[] types
Returns
Type Description
GameObject
| Improve this Doc View Source

CreateInstance(Type)

Declaration
public static Object CreateInstance(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
Object
| Improve this Doc View Source

CreateInstance<T>()

Declaration
public static T CreateInstance<T>()
    where T : Object
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

CreatePrimitive(PrimitiveType)

Declaration
public static GameObject CreatePrimitive(PrimitiveType type)
Parameters
Type Name Description
PrimitiveType type
Returns
Type Description
GameObject

Events

| Improve this Doc View Source

componentWasAdded

Declaration
public static event Action<Component> componentWasAdded
Event Type
Type Description
Action<Component>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX