Class CoreLightEditorUtilities
Inheritance
System.Object
CoreLightEditorUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.Experimental.Rendering
Syntax
public static class CoreLightEditorUtilities
Methods
DrawArealightGizmo(Light)
Declaration
public static void DrawArealightGizmo(Light arealight)
Parameters
Type | Name | Description |
---|---|---|
Light | arealight |
DrawDirectionalLightGizmo(Light)
Declaration
public static void DrawDirectionalLightGizmo(Light directionalLight)
Parameters
Type | Name | Description |
---|---|---|
Light | directionalLight |
DrawInnerCone(Light, Single)
Declaration
public static void DrawInnerCone(Light spotlight, float innerSpotPercent)
Parameters
Type | Name | Description |
---|---|---|
Light | spotlight | |
System.Single | innerSpotPercent |
DrawLightOrthoFrustum(Vector3, Single, Single, Single, Single)
Declaration
public static void DrawLightOrthoFrustum(Vector3 center, float width, float height, float maxRange, float minRange)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | center | |
System.Single | width | |
System.Single | height | |
System.Single | maxRange | |
System.Single | minRange |
DrawLightPyramidFrustum(Vector3, Single, Single, Single, Single)
Declaration
public static void DrawLightPyramidFrustum(Vector3 center, float fov, float maxRange, float minRange, float aspect)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | center | |
System.Single | fov | |
System.Single | maxRange | |
System.Single | minRange | |
System.Single | aspect |
DrawPointlightGizmo(Light, Boolean)
Declaration
public static void DrawPointlightGizmo(Light pointlight, bool selected)
Parameters
Type | Name | Description |
---|---|---|
Light | pointlight | |
System.Boolean | selected |
DrawSpotlightGizmo(Light, Single, Boolean)
Declaration
public static void DrawSpotlightGizmo(Light spotlight, float innerSpotPercent, bool selected)
Parameters
Type | Name | Description |
---|---|---|
Light | spotlight | |
System.Single | innerSpotPercent | |
System.Boolean | selected |
DrawWireDisc(Quaternion, Vector3, Vector3, Single)
Declaration
public static void DrawWireDisc(Quaternion q, Vector3 position, Vector3 axis, float radius)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | q | |
Vector3 | position | |
Vector3 | axis | |
System.Single | radius |