VRC SDK
This project aims to completely document the VRChat Unity SDK
Loading...
Searching...
No Matches
HandlesUtil Class Reference
Inheritance diagram for HandlesUtil:
Collaboration diagram for HandlesUtil:

Static Public Member Functions

static void SetColor (Color color, float alpha)
 
static void DrawWireSphere (Vector3 center, float radius)
 
static void DrawWireSphere (Vector3 center, Quaternion rotation, float radius)
 
static void DrawWireCylinder (Vector3 center, float height, float radius1, float radius2, Quaternion rotation=default(Quaternion), int segments=8)
 
static void DrawWireCapsule (Vector3 center, Quaternion rotation, float height, float radius)
 
static void DrawWireCapsule (Vector3 center, Quaternion rotation, float height, float radius1, float radius2)
 
static void DrawWireAngleCone (Vector3 tip, Quaternion rotation, float radius, float angle, int segments=12)
 
static void DrawSolidAngleCone (Vector3 tip, Quaternion rotation, float radius, float angle)
 
static void DrawWireSquare (Vector3 center, Quaternion rotation, float size)
 
static void DrawWireSquare (Vector3 center, Vector3 normal, float size)
 
static void DrawWirePlane (Vector3 center, Vector3 normal, float size)
 
static int AddLineToBatch (ref List< Vector3 > buffer, Vector3 start, Vector3 end)
 
static int AddCapsuleToBatch (ref List< Vector3 > buffer, float beginRadius, float endRadius, float half)
 
static int AddSphereToBatch (ref List< Vector3 > buffer, float radius)
 
static int DrawLineBatched (ref List< Vector3 > buffer, int offset, Color color)
 
static int DrawSphereBatched (ref List< Vector3 > buffer, int offset, Color color, Matrix4x4 matrix)
 
static int DrawCapsuleBatched (ref List< Vector3 > buffer, int offset, Color color, Matrix4x4 matrix)
 
static void ApplyWireMaterial ()
 

Properties

static List< Quaternion > CapsuleGizmoRotations [get]
 
static List< Quaternion > SphereGizmoRotations [get]
 

Static Private Member Functions

static void DrawWireCapsuleEndcap (Vector3 center, Quaternion rotation, float half, float radius, bool isUp)
 
static int AddCylinderSidePoints (ref List< Vector3 > buffer, float beginRadius, float endRadius, float half)
 
static int AddCylinderCapPoints (ref List< Vector3 > buffer, float beginRadius, float endRadius, float half)
 
static int AddCapsuleCapPoints (ref List< Vector3 > buffer, float beginRadius, float endRadius, float half)
 

Static Private Attributes

const int LINE_GIZMOS_SIZE = 2
 
const int RADIUS_GIZMO_SIDES_OFFSET = 8
 
const int RADIUS_GIZMO_SPHERE_OFFSET = 25
 
const int RADIUS_GIZMO_CAP_OFFSET = 13
 
const int RADIUS_GIZMO_CAPS_SIZE = 50
 
const int RADIUS_GIZMO_CAPSULE_CAPS_SIZE = 52
 
const int RADIUS_GIZMO_SPHERE_SIZE = 75
 

Detailed Description

Definition at line 780 of file VRCSDKBase-Editor.cs.

Member Function Documentation

◆ AddCapsuleCapPoints()

static int HandlesUtil.AddCapsuleCapPoints ( ref List< Vector3 >  buffer,
float  beginRadius,
float  endRadius,
float  half 
)
staticprivate

Definition at line 1437 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ AddCapsuleToBatch()

static int HandlesUtil.AddCapsuleToBatch ( ref List< Vector3 >  buffer,
float  beginRadius,
float  endRadius,
float  half 
)
static

Definition at line 1371 of file VRCSDKBase-Editor.cs.

Here is the call graph for this function:

◆ AddCylinderCapPoints()

static int HandlesUtil.AddCylinderCapPoints ( ref List< Vector3 >  buffer,
float  beginRadius,
float  endRadius,
float  half 
)
staticprivate

Definition at line 1410 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ AddCylinderSidePoints()

static int HandlesUtil.AddCylinderSidePoints ( ref List< Vector3 >  buffer,
float  beginRadius,
float  endRadius,
float  half 
)
staticprivate

Definition at line 1376 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ AddLineToBatch()

static int HandlesUtil.AddLineToBatch ( ref List< Vector3 >  buffer,
Vector3  start,
Vector3  end 
)
static

Definition at line 1362 of file VRCSDKBase-Editor.cs.

◆ AddSphereToBatch()

static int HandlesUtil.AddSphereToBatch ( ref List< Vector3 >  buffer,
float  radius 
)
static

Definition at line 1486 of file VRCSDKBase-Editor.cs.

◆ ApplyWireMaterial()

static void HandlesUtil.ApplyWireMaterial ( )
static

Definition at line 1652 of file VRCSDKBase-Editor.cs.

◆ DrawCapsuleBatched()

static int HandlesUtil.DrawCapsuleBatched ( ref List< Vector3 >  buffer,
int  offset,
Color  color,
Matrix4x4  matrix 
)
static

Definition at line 1571 of file VRCSDKBase-Editor.cs.

◆ DrawLineBatched()

static int HandlesUtil.DrawLineBatched ( ref List< Vector3 >  buffer,
int  offset,
Color  color 
)
static

Definition at line 1515 of file VRCSDKBase-Editor.cs.

◆ DrawSolidAngleCone()

static void HandlesUtil.DrawSolidAngleCone ( Vector3  tip,
Quaternion  rotation,
float  radius,
float  angle 
)
static

Definition at line 1189 of file VRCSDKBase-Editor.cs.

◆ DrawSphereBatched()

static int HandlesUtil.DrawSphereBatched ( ref List< Vector3 >  buffer,
int  offset,
Color  color,
Matrix4x4  matrix 
)
static

Definition at line 1532 of file VRCSDKBase-Editor.cs.

◆ DrawWireAngleCone()

static void HandlesUtil.DrawWireAngleCone ( Vector3  tip,
Quaternion  rotation,
float  radius,
float  angle,
int  segments = 12 
)
static

Definition at line 1152 of file VRCSDKBase-Editor.cs.

◆ DrawWireCapsule() [1/2]

static void HandlesUtil.DrawWireCapsule ( Vector3  center,
Quaternion  rotation,
float  height,
float  radius 
)
static

Definition at line 1007 of file VRCSDKBase-Editor.cs.

Here is the call graph for this function:

◆ DrawWireCapsule() [2/2]

static void HandlesUtil.DrawWireCapsule ( Vector3  center,
Quaternion  rotation,
float  height,
float  radius1,
float  radius2 
)
static

Definition at line 1106 of file VRCSDKBase-Editor.cs.

Here is the call graph for this function:

◆ DrawWireCapsuleEndcap()

static void HandlesUtil.DrawWireCapsuleEndcap ( Vector3  center,
Quaternion  rotation,
float  half,
float  radius,
bool  isUp 
)
staticprivate

Definition at line 1119 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ DrawWireCylinder()

static void HandlesUtil.DrawWireCylinder ( Vector3  center,
float  height,
float  radius1,
float  radius2,
Quaternion  rotation = default(Quaternion),
int  segments = 8 
)
static

Definition at line 948 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ DrawWirePlane()

static void HandlesUtil.DrawWirePlane ( Vector3  center,
Vector3  normal,
float  size 
)
static

Definition at line 1349 of file VRCSDKBase-Editor.cs.

Here is the call graph for this function:

◆ DrawWireSphere() [1/2]

static void HandlesUtil.DrawWireSphere ( Vector3  center,
float  radius 
)
static

Definition at line 904 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ DrawWireSphere() [2/2]

static void HandlesUtil.DrawWireSphere ( Vector3  center,
Quaternion  rotation,
float  radius 
)
static

Definition at line 920 of file VRCSDKBase-Editor.cs.

◆ DrawWireSquare() [1/2]

static void HandlesUtil.DrawWireSquare ( Vector3  center,
Quaternion  rotation,
float  size 
)
static

Definition at line 1210 of file VRCSDKBase-Editor.cs.

Here is the caller graph for this function:

◆ DrawWireSquare() [2/2]

static void HandlesUtil.DrawWireSquare ( Vector3  center,
Vector3  normal,
float  size 
)
static

Definition at line 1270 of file VRCSDKBase-Editor.cs.

◆ SetColor()

static void HandlesUtil.SetColor ( Color  color,
float  alpha 
)
static

Definition at line 894 of file VRCSDKBase-Editor.cs.

Member Data Documentation

◆ LINE_GIZMOS_SIZE

const int HandlesUtil.LINE_GIZMOS_SIZE = 2
staticprivate

Definition at line 782 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_CAP_OFFSET

const int HandlesUtil.RADIUS_GIZMO_CAP_OFFSET = 13
staticprivate

Definition at line 788 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_CAPS_SIZE

const int HandlesUtil.RADIUS_GIZMO_CAPS_SIZE = 50
staticprivate

Definition at line 790 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_CAPSULE_CAPS_SIZE

const int HandlesUtil.RADIUS_GIZMO_CAPSULE_CAPS_SIZE = 52
staticprivate

Definition at line 792 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_SIDES_OFFSET

const int HandlesUtil.RADIUS_GIZMO_SIDES_OFFSET = 8
staticprivate

Definition at line 784 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_SPHERE_OFFSET

const int HandlesUtil.RADIUS_GIZMO_SPHERE_OFFSET = 25
staticprivate

Definition at line 786 of file VRCSDKBase-Editor.cs.

◆ RADIUS_GIZMO_SPHERE_SIZE

const int HandlesUtil.RADIUS_GIZMO_SPHERE_SIZE = 75
staticprivate

Definition at line 794 of file VRCSDKBase-Editor.cs.

Property Documentation

◆ CapsuleGizmoRotations

List<Quaternion> HandlesUtil.CapsuleGizmoRotations
staticgetprivate

Definition at line 802 of file VRCSDKBase-Editor.cs.

◆ SphereGizmoRotations

List<Quaternion> HandlesUtil.SphereGizmoRotations
staticgetprivate

Definition at line 853 of file VRCSDKBase-Editor.cs.


The documentation for this class was generated from the following file: