docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct GhostDebugMeshBounds

    Self contained component to hold a mesh's bounds for debug drawing.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    public struct GhostDebugMeshBounds : IComponentData, IQueryTypeParameter
    Remarks

    This should stay active even when the GameObject is inactive. This is really showing boxes for the netcode of your GameObject, which is linked to the entity lifecycle If the entity is still moving and your GO is inactive, you'd potentially still want to know about it.

    Fields

    Name Description
    GlobalBounds

    The bounds for this entity, used to draw a debug box. Should be in local space, with the center at the object's origin.

    Methods

    Name Description
    Initialize(GameObject, Entity, World)

    Convenience method to initialize the debug mesh bounds for GameObjects.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)