Class GhostFieldAttribute | Unity NetCode | 0.6.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostFieldAttribute

    Inheritance
    Object
    Attribute
    GhostFieldAttribute
    Namespace: Unity.NetCode
    Syntax
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class GhostFieldAttribute : Attribute, _Attribute

    Constructors

    GhostFieldAttribute()

    Declaration
    public GhostFieldAttribute()

    Properties

    Composite

    Declaration
    public bool Composite { get; set; }
    Property Value
    Type Description
    Boolean

    MaxSmoothingDistance

    The maximum distance between two snapshots for which smoothing will be applied. If the value changes more than this between two received snapshots the smoothing action will not be performed.

    Declaration
    public int MaxSmoothingDistance { get; set; }
    Property Value
    Type Description
    Int32
    Remarks

    For quaternions the value specified should be sin(theta / 2) - where theta is the maximum angle you want to apply smoothing for.

    Quantization

    Declaration
    public int Quantization { get; set; }
    Property Value
    Type Description
    Int32

    SendData

    Declaration
    public bool SendData { get; set; }
    Property Value
    Type Description
    Boolean

    Smoothing

    Declaration
    public SmoothingAction Smoothing { get; set; }
    Property Value
    Type Description
    SmoothingAction

    SubType

    Declaration
    public int SubType { get; set; }
    Property Value
    Type Description
    Int32
    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