docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Health

    Container for storing health data for a player or item.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: DocumentationCodeSamples
    Assembly: Unity.Netcode.Editor.Tests.dll
    Syntax
    public struct Health

    Fields

    CurrentHealth

    The current level of health that this player or item has. This is likely to change regularly.

    Declaration
    public int CurrentHealth
    Field Value
    Type Description
    int

    MaxHealth

    The maximum health that this player or item can have. This is unlikely to change often.

    Declaration
    public uint MaxHealth
    Field Value
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2026 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)