Struct UnmanagedProperty<TContainer, TValue> | Properties | 0.10.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct UnmanagedProperty<TContainer, TValue>

    Namespace: Unity.Properties
    Syntax
    public struct UnmanagedProperty<TContainer, TValue> : IUnmanagedProperty, IProperty<TContainer, TValue>, IProperty where TContainer : struct where TValue : struct
    Type Parameters
    Name Description
    TContainer
    TValue

    Constructors

    UnmanagedProperty(String, Int32, Boolean, IPropertyAttributeCollection)

    Declaration
    public UnmanagedProperty(string name, int offset, bool readOnly = false, IPropertyAttributeCollection attributes = null)
    Parameters
    Type Name Description
    String name
    Int32 offset
    Boolean readOnly
    IPropertyAttributeCollection attributes

    Properties

    Attributes

    Declaration
    public IPropertyAttributeCollection Attributes { get; }
    Property Value
    Type Description
    IPropertyAttributeCollection
    Implements
    IProperty.Attributes

    IsContainer

    Declaration
    public bool IsContainer { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IProperty.IsContainer

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IProperty.IsReadOnly

    Offset

    Declaration
    public int Offset { get; }
    Property Value
    Type Description
    Int32
    Implements
    IUnmanagedProperty.Offset

    Methods

    GetName()

    Declaration
    public string GetName()
    Returns
    Type Description
    String
    Implements
    IProperty.GetName()

    GetValue(ref TContainer)

    Declaration
    public TValue GetValue(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Returns
    Type Description
    TValue
    Implements
    IProperty<TContainer, TValue>.GetValue(ref TContainer)

    SetValue(ref TContainer, TValue)

    Declaration
    public void SetValue(ref TContainer container, TValue value)
    Parameters
    Type Name Description
    TContainer container
    TValue value
    Implements
    IProperty<TContainer, TValue>.SetValue(ref TContainer, TValue)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023