Search Results for

    Show / Hide Table of Contents

    Class GameplayGlobals

    The global gameplay variables container asset that can be accessed across whole project.

    Inheritance
    System.Object
    Object
    Asset
    BinaryAsset
    GameplayGlobals
    Inherited Members
    BinaryAsset.Reimport()
    BinaryAsset.ImportPath
    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 GameplayGlobals : BinaryAsset

    Constructors

    GameplayGlobals()

    Initializes a new instance of the GameplayGlobals.

    Declaration
    public GameplayGlobals()

    Properties

    DefaultValues

    Gets or sets the default values (edit-time).

    Declaration
    [Unmanaged]
    public Dictionary<string, object> DefaultValues { get; set; }
    Property Value
    System.Collections.Generic.Dictionary<System.String, System.Object>

    Values

    Gets or sets the values (run-time).

    Declaration
    [Unmanaged]
    public Dictionary<string, object> Values { get; set; }
    Property Value
    System.Collections.Generic.Dictionary<System.String, System.Object>

    Methods

    GetValue(String)

    Gets the value of the global variable (it must be added first).

    Declaration
    [Unmanaged]
    public object GetValue(string name)
    Parameters
    System.String name

    The variable name.

    Returns
    System.Object

    The value.

    ResetValues()

    Resets the variables values to default values.

    Declaration
    [Unmanaged]
    public void ResetValues()

    SetValue(String, Object)

    Sets the value of the global variable (it must be added first).

    Declaration
    [Unmanaged]
    public void SetValue(string name, object value)
    Parameters
    System.String name

    The variable name.

    System.Object value

    The value.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat