Method Initialize
Initialize(GameObject, Transform)
Initializes the behaviour with a prefab and parent transform
Declaration
public GameObject Initialize(GameObject prefabGameObject, Transform parentTransform)
Parameters
Type | Name | Description |
---|---|---|
GameObject | prefabGameObject | The prefab to instantiate from |
Transform | parentTransform | Transform to parent instance to. Can be null. |
Returns
Type | Description |
---|---|
GameObject | The created instance |