Class AssetReferenceT<TObject>
Inheritance
System.Object
AssetReferenceT<TObject>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public class AssetReferenceT<TObject> : AssetReference where TObject : Object
Type Parameters
Methods
Declaration
public IAsyncOperation<TObject> Instantiate(Transform parent = null, bool instantiateInWorldSpace = false)
Parameters
Type |
Name |
Description |
Transform |
parent |
|
System.Boolean |
instantiateInWorldSpace |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Declaration
public IAsyncOperation<TObject> Instantiate(Vector3 position, Quaternion rotation, Transform parent = null)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Quaternion |
rotation |
|
Transform |
parent |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
LoadAsset()
Declaration
public IAsyncOperation<TObject> LoadAsset()
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
ReleaseAsset(TObject)
Declaration
public void ReleaseAsset(TObject obj)
Parameters
Type |
Name |
Description |
TObject |
obj |
|
ReleaseInstance(TObject)
Declaration
public void ReleaseInstance(TObject obj)
Parameters
Type |
Name |
Description |
TObject |
obj |
|
ValidateType(Type)
Declaration
public override bool ValidateType(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides