Search Results for

    Show / Hide Table of Contents

    Class SoftAssetReferenceBase

    The asset soft reference. Asset gets referenced (loaded) on actual use (ID reference is resolving it).

    Inheritance
    SoftAssetReferenceBase
    Assembly: FlaxEngine.dll
    File: Engine/Content/SoftAssetReference.h
    Syntax
    public class SoftAssetReferenceBase

    Constructors

    ~SoftAssetReferenceBase()

    Finalizes an instance of the SoftAssetReferenceBase class.

    Declaration
    public ~SoftAssetReferenceBase()

    SoftAssetReferenceBase()

    Initializes a new instance of the SoftAssetReferenceBase class.

    Declaration
    public SoftAssetReferenceBase() = default

    Fields

    _asset

    Declaration
    protected Asset* _asset = nullptr
    Field Value
    Asset

    _id

    Declaration
    protected Guid _id = Guid::Empty
    Field Value
    Guid

    Changed

    Action fired when field gets changed (link a new asset or change to the another value).

    Declaration
    public Delegate Changed
    Field Value
    Delegate

    Methods

    GetID()

    Gets the asset ID or Guid::Empty if not set.

    Declaration
    public Guid GetID() const
    Returns
    Guid

    OnResolve(const ScriptingTypeHandle& type)

    Declaration
    protected void OnResolve(const ScriptingTypeHandle& type)
    Parameters
    ScriptingTypeHandle type

    OnSet(Asset* asset)

    Declaration
    protected void OnSet(Asset* asset)
    Parameters
    Asset asset

    OnSet(const Guid& id)

    Declaration
    protected void OnSet(const Guid& id)
    Parameters
    Guid id

    OnUnloaded(Asset* asset)

    Declaration
    protected void OnUnloaded(Asset* asset)
    Parameters
    Asset asset

    ToString()

    Gets the asset property value as string.

    Declaration
    public String ToString() const
    Returns
    String

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat