// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) VRMADA, All rights reserved. // // -------------------------------------------------------------------------------------------------------------------- using System; using UnityEngine; namespace UltimateXR.Mechanics.CyborgAvatar { public partial class WristConnectionRays { #region Private Types & Data /// /// Stores the properties of a connection ray. /// [Serializable] private class RayProperties { #region Inspector Properties/Serialized Fields [SerializeField] [ColorUsage(true, true)] private Color _color; [SerializeField] private float _thickness; [SerializeField] private float _offset; #endregion #region Public Types & Data /// /// Gets the ray thickness. /// public float Thickness => _thickness; /// /// Gets the ray offset. /// public float Offset => _offset; /// /// Gets the ray color. /// public Color Color { get => _color; set => _color = value; } /// /// Gets or sets the GameObject created at runtime for the ray. /// public GameObject GameObject { get; set; } /// /// Gets or sets the line renderer component created at runtime for the ray. /// public LineRenderer LineRenderer { get; set; } /// /// Gets or sets the offset in the 2d section of the ray direction. /// public Vector2 OffsetXY { get; set; } /// /// Gets or sets the start color. /// public Color StartColor { get; set; } #endregion } #endregion } }