KROYSDOCS
HomeWhat's newv0.1.0

AssetRef

Serializable reference to an engine asset.

Kindstruct
NamespaceKroys.EngineScripting
Members5
SourceAssetRef.cs
DECLARATION

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.
constructor
#public AssetRef(AssetGuid guid)
Creates an asset reference from a persistent asset GUID.
constructor
Properties
#public string AssetId { get; }
Gets the serialized asset id.
property
#public AssetGuid Guid { get; }
Gets the persistent asset GUID, or an invalid GUID when the id is a session handle or empty.
property
#public bool IsValid { get; }
Gets whether this reference contains an assigned asset id.
property
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.