Search Results for

    Show / Hide Table of Contents

    Class JsonAsset

    Generic type of Json-format asset. It provides the managed representation of this resource data so it can be accessed via C# API.

    Inheritance
    System.Object
    Object
    Asset
    JsonAssetBase
    JsonAsset
    SceneAsset
    Inherited Members
    JsonAssetBase.Init(String, String)
    JsonAssetBase.GetReferences(String, Guid[])
    JsonAssetBase.DataTypeName
    JsonAssetBase.DataEngineBuild
    JsonAssetBase.Data
    Asset.Reload()
    Asset.WaitForLoaded(Double)
    Asset.GetReferences()
    Asset.Save(String)
    Asset.ToString()
    Asset.ReferencesCount
    Asset.Path
    Asset.IsLoaded
    Asset.LastLoadFailed
    Asset.IsVirtual
    Asset.ShouldDeleteFileOnUnload
    Asset.MemoryUsage
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class JsonAsset : JsonAssetBase

    Constructors

    JsonAsset()

    Initializes a new instance of the JsonAsset.

    Declaration
    public JsonAsset()

    Properties

    Instance

    Gets the instance of the serialized object from the json asset data. Cached internally.

    Declaration
    public object Instance { get; }
    Property Value
    System.Object

    Methods

    CreateInstance()

    Creates a new instance of the serialized object from the json asset data.

    Declaration
    public object CreateInstance()
    Returns
    System.Object

    The new object or null if failed.

    Remarks

    Use Instance to get cached object.

    CreateInstance<T>()

    Creates a new instance of the serialized object from the json asset data.

    Declaration
    public T CreateInstance<T>()
    Returns
    T

    The new object or null if failed.

    Type Parameters
    T

    Remarks

    Use Instance to get cached object.

    GetInstance<T>()

    Gets the instance of the serialized object from the json data. Cached internally.

    Declaration
    public T GetInstance<T>()
    Returns
    T

    The asset instance object or null.

    Type Parameters
    T

    SetInstance(Object)

    Sets the instance of the asset (for both C# and C++). Doesn't save asset to the file (runtime only).

    Declaration
    public void SetInstance(object instance)
    Parameters
    System.Object instance

    The new instance.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)

    See Also

    JsonAssetBase
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat