Table of Contents

Class UnityPrefab

Namespace
Luny.Unity.Bridge
/
Assembly
Luny.Unity.dll
public sealed class UnityPrefab : LunyPrefab, ILunyPrefab, ILunyAsset
Expand Details ...
Inheritance
Object
UnityPrefab
Implements
Inherited Members

Constructors

UnityPrefab(GameObject, LunyAssetPath, Boolean)

public UnityPrefab(GameObject prefab, LunyAssetPath assetPath, Boolean isPlaceholder = false)

Parameters

Type Name Description
GameObject
prefab
LunyAssetPath
assetPath
Boolean
isPlaceholder

Methods

Instantiate()

public GameObject Instantiate()

Returns

GameObject

Instantiate(ILunyObject)

public GameObject Instantiate(ILunyObject parent)

Parameters

Type Name Description
ILunyObject
parent

Returns

GameObject

Instantiate(Transform, Vector3, Quaternion)

public GameObject Instantiate(Transform parent, Vector3 position, Quaternion rotation)

Parameters

Type Name Description
Transform
parent
Vector3
position
Quaternion
rotation

Returns

GameObject

Instantiate<T>(ILunyObject)

public override T Instantiate<T>(ILunyObject parent) where T : class

Parameters

Type Name Description
ILunyObject
parent

Returns

T

Type Parameters

T