docs.unity3d.com
    Show / Hide Table of Contents

    Enum SendToOwnerType

    Meta-data of a ICommandData component, denoting whether or not the server should replicate the input commands back down to clients. Configure via GhostComponentAttribute.

    Docs for ICommandData:

    Namespace: Unity.NetCode
    Syntax
    [Flags]
    public enum SendToOwnerType

    Fields

    Name Description Value
    None

    Informs the server not not replicate this ICommandData back down to any clients.


    0
    SendToOwner

    Informs the server to replicate this ICommandData back to the owner, exclusively.


    1
    SendToNonOwner

    Informs the server to replicate this ICommandData to all clients except the input "author" (i.e. the player who owns the ghost).


    2
    All

    Informs the server to replicate this ICommandData to all clients, including back to ourselves.


    3
    In This Article
    • Fields
    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