Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    UpdatableField<T> Class

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

    Defines how to set and get values from a field of a given type for the UpdateEngine.

    System.Object → UpdatableMember → UpdatableField → UpdatableField<T>
    Derived from UpdatableField<T>: UpdatableArrayAccessor<T>

    public class UpdatableField<T> : UpdatableField
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    UpdatableField(Int32)
    Properties
    MemberType

    Gets the type of the member.

    Methods
    SetStruct(IntPtr, Object)

    Sets a non-blittable struct field (given in boxed form).

    | Improve this Doc View Source

    Constructors


    UpdatableField(Int32)

    public UpdatableField(int offset)
    Parameters
    Type Name Description
    System.Int32 offset
    | Improve this Doc View Source

    Properties


    MemberType

    Gets the type of the member.

    public override Type MemberType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    UpdatableMember.MemberType
    | Improve this Doc View Source

    Methods


    SetStruct(IntPtr, Object)

    Sets a non-blittable struct field (given in boxed form).

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

    The container object.

    System.Object data

    The new value to unbox and set

    Overrides
    UpdatableField.SetStruct(IntPtr, Object)

    Inherited Members

    UpdatableField.Offset
    UpdatableField.Size
    UpdatableField.GetObject(IntPtr)
    UpdatableField.SetObject(IntPtr, Object)
    UpdatableField.SetBlittable(IntPtr, IntPtr)
    UpdatableField.GetSetOperationType()
    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