Class AssetReference
Inheritance
System.Object
AssetReference
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
[Serializable]
public class AssetReference
Fields
assetGUID
Declaration
Field Value
Type |
Description |
System.String |
|
Properties
RuntimeKey
Declaration
public Hash128 RuntimeKey { get; }
Property Value
Methods
Declaration
public IAsyncOperation<TObject> Instantiate<TObject>(Transform parent = null, bool instantiateInWorldSpace = false)where TObject : Object
Parameters
Type |
Name |
Description |
Transform |
parent |
|
System.Boolean |
instantiateInWorldSpace |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Type Parameters
Declaration
public IAsyncOperation<TObject> Instantiate<TObject>(Vector3 position, Quaternion rotation, Transform parent = null)where TObject : Object
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Quaternion |
rotation |
|
Transform |
parent |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Type Parameters
LoadAsset<TObject>()
Declaration
public IAsyncOperation<TObject> LoadAsset<TObject>()where TObject : Object
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Type Parameters
ReleaseAsset<TObject>(TObject)
Declaration
public void ReleaseAsset<TObject>(TObject obj)where TObject : Object
Parameters
Type |
Name |
Description |
TObject |
obj |
|
Type Parameters
ReleaseInstance<TObject>(TObject)
Declaration
public void ReleaseInstance<TObject>(TObject obj)where TObject : Object
Parameters
Type |
Name |
Description |
TObject |
obj |
|
Type Parameters
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
ValidateType(Type)
Declaration
public virtual bool ValidateType(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|