Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    UpdatableProperty Class

    Namespace: Stride.Updater
    Assembly: Stride.Engine.dll

    Defines how to set and get values from a property for the UpdateEngine.

    System.Object → UpdatableMember → UpdatablePropertyBase → UpdatableProperty
    Derived from UpdatableProperty: UpdatableProperty<T> UpdatablePropertyObject<T>

    public abstract class UpdatableProperty : UpdatablePropertyBase
    Name Description
    Constructors
    UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean)
    Fields
    Getter
    Setter
    VirtualDispatchGetter
    VirtualDispatchSetter
    Methods
    GetObject(IntPtr)

    Gets a reference object from a property.

    SetObject(IntPtr, Object)

    Sets a reference object from a property.

    | Improve this Doc View Source

    Constructors


    UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean)

    protected UpdatableProperty(IntPtr getter, bool virtualDispatchGetter, IntPtr setter, bool virtualDispatchSetter)
    Parameters
    Type Name Description
    System.IntPtr getter
    System.Boolean virtualDispatchGetter
    System.IntPtr setter
    System.Boolean virtualDispatchSetter
    | Improve this Doc View Source

    Fields


    Getter

    public readonly IntPtr Getter
    Field Value
    Type Description
    System.IntPtr

    Setter

    public readonly IntPtr Setter
    Field Value
    Type Description
    System.IntPtr

    VirtualDispatchGetter

    public readonly bool VirtualDispatchGetter
    Field Value
    Type Description
    System.Boolean

    VirtualDispatchSetter

    public readonly bool VirtualDispatchSetter
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Methods


    GetObject(IntPtr)

    Gets a reference object from a property.

    public object GetObject(IntPtr obj)
    Parameters
    Type Name Description
    System.IntPtr obj

    The object encoded as a native pointer (UpdateEngine will make sure it is pinned).

    Returns
    Type Description
    System.Object

    The object value from the property.


    SetObject(IntPtr, Object)

    Sets a reference object from a property.

    public void SetObject(IntPtr obj, object data)
    Parameters
    Type Name Description
    System.IntPtr obj

    The object encoded as a native pointer (UpdateEngine will make sure it is pinned).

    System.Object data

    The object value to set.


    Inherited Members

    UpdatablePropertyBase.GetBlittable(IntPtr, IntPtr)
    UpdatablePropertyBase.SetBlittable(IntPtr, IntPtr)
    UpdatablePropertyBase.SetStruct(IntPtr, Object)
    UpdatablePropertyBase.GetStructAndUnbox(IntPtr, Object)
    UpdatableMember.MemberType
    UpdatableMember.CreateEnterChecker()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation