drawminmaxvalueline - eisclimber/ExPresS-XR GitHub Wiki

GizmoUtils.DrawMinMaxValueLine(Vector3,Vector3,float,Color,Color,Color,Color,Vector3,Transform,string,string,string)

Method in GizmoUtils

Summary

Draws a line between two points (minimum and maximum) with a marker at each end and a marker highlighting between these two values.

public static void DrawMinMaxValueLine(Vector3 minPos, Vector3 maxPos, float value, Color minColor, Color maxColor, Color lineColor, Color valueColor, Vector3 upVector, Transform atTransform = null, string minLabel = "", string maxLabel = "", string valueFormat = "")

Parameters

Name Description
UnityEngine.Vector3 minPos Minimal position.
UnityEngine.Vector3 maxPos Maximal position.
float value Value in the range of 0.0f to 1.0f.
UnityEngine.Color minColor Color of the minimum marker.
UnityEngine.Color maxColor Color of the maximum marker.
UnityEngine.Color lineColor Color of the line between the points.
UnityEngine.Color valueColor Color of the value marker.
UnityEngine.Vector3 upVector Determines the direction of the end markers.
UnityEngine.Transform atTransform Transform context to draw the gizmo.
string minLabel Text label to draw at the start (=min) of the marker line.
string maxLabel Text label to draw at the end (=max) of the marker line.
string valueFormat Format used to display the value. No text will be shown if empty.
⚠️ **GitHub.com Fallback** ⚠️