docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct HalfVector4

    Implements
    INetworkSerializable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Netcode.Components
    Assembly: solution.dll
    Syntax
    public struct HalfVector4 : INetworkSerializable

    Constructors

    Name Description
    HalfVector4(float, float, float, float)

    Constructor

    HalfVector4(Vector4)

    Constructor

    Fields

    Name Description
    Axis

    Used to store the half float precision values as a half4

    Properties

    Name Description
    W

    The half float precision value of the w-axis as a half.

    X

    The half float precision value of the x-axis as a half.

    Y

    The half float precision value of the y-axis as a half.

    Z

    The half float precision value of the z-axis as a half.

    Methods

    Name Description
    NetworkSerialize<T>(BufferSerializer<T>)

    The serialization implementation of INetworkSerializable.

    ToQuaternion()

    Converts this instance to a full precision Quaternion.

    ToVector4()

    Converts this instance to a full precision Vector4.

    UpdateFrom(ref Quaternion)

    Converts a full precision Vector4 to half precision and updates the current instance.

    UpdateFrom(ref Vector4)

    Converts a full precision Vector4 to half precision and updates the current instance.

    In This Article
    Back to top
    Copyright © 2024 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)