Struct SyncableAssetRef
A resilient reference to a specific asset in DewResources database. Survives resource unloads and variant clears.
Assembly: Dew.Core.dll
Syntax
[Serializable]
public struct SyncableAssetRef
Constructors
SyncableAssetRef(Object)
Declaration
public SyncableAssetRef(Object v = null)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
v |
|
Fields
guid
Declaration
Field Value
isActor
Declaration
Field Value
isMonoBehaviour
Declaration
public bool isMonoBehaviour
Field Value
typeAssemblyQualifiedName
Declaration
public string typeAssemblyQualifiedName
Field Value
typeName
Declaration
Field Value
Properties
asset
Declaration
[JsonIgnore]
public Object asset { get; set; }
Property Value
| Type |
Description |
| UnityEngine.Object |
|
lightAsset
Declaration
[JsonIgnore]
public Object lightAsset { get; }
Property Value
| Type |
Description |
| UnityEngine.Object |
|
Methods
ClearCache()
Declaration
Equals(SyncableAssetRef)
Declaration
public bool Equals(SyncableAssetRef other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
System.ValueType.Equals(object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
System.ValueType.GetHashCode()
Operators
operator ==(SyncableAssetRef, SyncableAssetRef)
Declaration
public static bool operator ==(SyncableAssetRef left, SyncableAssetRef right)
Parameters
Returns
implicit operator Object(SyncableAssetRef)
Declaration
public static implicit operator Object(SyncableAssetRef assetRef)
Parameters
Returns
| Type |
Description |
| UnityEngine.Object |
|
implicit operator SyncableAssetRef(Object)
Declaration
public static implicit operator SyncableAssetRef(Object t)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
t |
|
Returns
operator !=(SyncableAssetRef, SyncableAssetRef)
Declaration
public static bool operator !=(SyncableAssetRef left, SyncableAssetRef right)
Parameters
Returns