SCRIPTING API / Assets and attributes / AssetRef
AssetRef
Serializable reference to an engine asset.
Kindstruct
NamespaceKroys.EngineScripting
Members5
Source
AssetRef.csDECLARATION
Declaration
Namespace Kroys.EngineScripting.
Declaration
public readonly struct AssetRef<TAsset> where TAsset : Asset
REFERENCE
Members
Constructors
#public AssetRef(string assetId)Creates an asset reference from a serialized asset id: an asset GUID, or a numeric session handle stored by earlier versions.
#public AssetRef(AssetGuid guid)Creates an asset reference from a persistent asset GUID.
Properties
#public string AssetId { get; }Gets the serialized asset id.
#public AssetGuid Guid { get; }Gets the persistent asset GUID, or an invalid GUID when the id is a session handle or empty.
#public bool IsValid { get; }Gets whether this reference contains an assigned asset id.
Signatures
public AssetRef(string assetId) public AssetRef(AssetGuid guid) public string AssetId { get; } public AssetGuid Guid { get; } public bool IsValid { get; }
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.