Class UnityPrefab
public sealed class UnityPrefab : LunyPrefab, ILunyPrefab, ILunyAsset
Expand Details ...
- Inheritance
-
ObjectUnityPrefab
- Implements
Constructors
UnityPrefab(GameObject, LunyAssetPath, Boolean)
public UnityPrefab(GameObject prefab, LunyAssetPath assetPath, Boolean isPlaceholder = false)
Parameters
| Type | Name | Description |
|---|---|---|
prefab |
||
assetPath |
||
isPlaceholder |
Methods
Instantiate()
public GameObject Instantiate()
Returns
Instantiate(ILunyObject)
public GameObject Instantiate(ILunyObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
parent |
Returns
Instantiate(Transform, Vector3, Quaternion)
public GameObject Instantiate(Transform parent, Vector3 position, Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
parent |
||
position |
||
rotation |
Returns
Instantiate<T>(ILunyObject)
public override T Instantiate<T>(ILunyObject parent) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
parent |
Returns
- T
Type Parameters
T