Class ObjectCreationData
Inheritance
ObjectCreationData
Syntax
[Serializable]
[MovedFrom("Unity.MARS")]
public abstract class ObjectCreationData : ScriptableObject
Fields
m_Icon
Declaration
[SerializeField]
protected DarkLightIconPair m_Icon
Field Value
m_ObjectName
Declaration
[FormerlySerializedAs("m_ButtonName")]
[SerializeField]
protected string m_ObjectName
Field Value
Declaration
[SerializeField]
protected string m_Tooltip
Field Value
Properties
CreateInContextSelection
Declaration
public ObjectCreationData.CreateInContext CreateInContextSelection { get; }
Property Value
ObjectGUIContent
Declaration
public GUIContent ObjectGUIContent { get; }
Property Value
ObjectName
Declaration
public string ObjectName { get; }
Property Value
Methods
CreateGameObject()
Declaration
[Obsolete("CreateGameObject() has been deprecated. Use CreateGameObject(out GameObject createdObj, Transform parentTransform) instead.", false)]
public virtual bool CreateGameObject()
Returns
Declaration
public abstract bool CreateGameObject(out GameObject createdObj, Transform parentTransform)
Parameters
Returns
Declaration
protected GameObject GenerateInitialGameObject(string objName, Transform parent)
Parameters
Returns