Class GenericPrefabObjectCreationData
Used to create a game object from a prefab in the editor and with a button
Inherited Members
Namespace: UnityEditor.MARS
Syntax
public class GenericPrefabObjectCreationData : ObjectCreationData
Methods
CreateGameObject(out GameObject, Transform)
Create a game object from the prefab creation data
Declaration
public override bool CreateGameObject(out GameObject createdObj, Transform parentTransform)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | createdObj | Prefab to instantiate. |
| Transform | parentTransform | Parent transform of the newly created prefab. |
Returns
| Type | Description |
|---|---|
| Boolean |
|