Class ShapeEditor
Inheritance
System.Object
ShapeEditor
Syntax
Constructors
ShapeEditor()
Declaration
Fields
Frame
Declaration
public Action<Bounds> Frame
Field Value
Type |
Description |
System.Action<Bounds> |
|
GetForwardVector
Declaration
public Func<Vector3> GetForwardVector
Field Value
Type |
Description |
System.Func<Vector3> |
|
GetHandleSize
Declaration
public Func<Vector3, float> GetHandleSize
Field Value
Type |
Description |
System.Func<Vector3, System.Single> |
|
GetLeftTangent
Declaration
public Func<int, Vector3> GetLeftTangent
Field Value
Type |
Description |
System.Func<System.Int32, Vector3> |
|
GetPointCapActive
Declaration
public Handles.CapFunction GetPointCapActive
Field Value
Type |
Description |
Handles.CapFunction |
|
GetPointCapHovered
Declaration
public Handles.CapFunction GetPointCapHovered
Field Value
Type |
Description |
Handles.CapFunction |
|
GetPointCapNormal
Declaration
public Handles.CapFunction GetPointCapNormal
Field Value
Type |
Description |
Handles.CapFunction |
|
GetPointCapPreview
Declaration
public Handles.CapFunction GetPointCapPreview
Field Value
Type |
Description |
Handles.CapFunction |
|
GetPointCapSelected
Declaration
public Handles.CapFunction GetPointCapSelected
Field Value
Type |
Description |
Handles.CapFunction |
|
GetPointCount
Declaration
public Func<int> GetPointCount
Field Value
Type |
Description |
System.Func<System.Int32> |
|
GetPosition
Declaration
public Func<int, Vector3> GetPosition
Field Value
Type |
Description |
System.Func<System.Int32, Vector3> |
|
GetRightTangent
Declaration
public Func<int, Vector3> GetRightTangent
Field Value
Type |
Description |
System.Func<System.Int32, Vector3> |
|
GetRightVector
Declaration
public Func<Vector3> GetRightVector
Field Value
Type |
Description |
System.Func<Vector3> |
|
GetTangentCapActive
Declaration
public Handles.CapFunction GetTangentCapActive
Field Value
Type |
Description |
Handles.CapFunction |
|
GetTangentCapHovered
Declaration
public Handles.CapFunction GetTangentCapHovered
Field Value
Type |
Description |
Handles.CapFunction |
|
GetTangentCapNormal
Declaration
public Handles.CapFunction GetTangentCapNormal
Field Value
Type |
Description |
Handles.CapFunction |
|
GetTangentMode
Declaration
public Func<int, ShapeEditor.TangentMode> GetTangentMode
Field Value
GetUpVector
Declaration
public Func<Vector3> GetUpVector
Field Value
Type |
Description |
System.Func<Vector3> |
|
InsertPointAt
Declaration
public Action<int, Vector3> InsertPointAt
Field Value
Type |
Description |
System.Action<System.Int32, Vector3> |
|
LocalToWorldMatrix
Declaration
public Func<Matrix4x4> LocalToWorldMatrix
Field Value
Type |
Description |
System.Func<Matrix4x4> |
|
OpenEnded
Declaration
public Func<bool> OpenEnded
Field Value
Type |
Description |
System.Func<System.Boolean> |
|
RecordUndo
Declaration
Field Value
Type |
Description |
System.Action |
|
RemovePointAt
Declaration
public Action<int> RemovePointAt
Field Value
Type |
Description |
System.Action<System.Int32> |
|
Repaint
Declaration
Field Value
Type |
Description |
System.Action |
|
ScreenToWorld
Declaration
public Func<Vector2, Vector3> ScreenToWorld
Field Value
Type |
Description |
System.Func<Vector2, Vector3> |
|
SetLeftTangent
Declaration
public Action<int, Vector3> SetLeftTangent
Field Value
Type |
Description |
System.Action<System.Int32, Vector3> |
|
SetPosition
Declaration
public Action<int, Vector3> SetPosition
Field Value
Type |
Description |
System.Action<System.Int32, Vector3> |
|
SetRightTangent
Declaration
public Action<int, Vector3> SetRightTangent
Field Value
Type |
Description |
System.Action<System.Int32, Vector3> |
|
SetTangentMode
Declaration
public Action<int, ShapeEditor.TangentMode> SetTangentMode
Field Value
Snap
Declaration
public Func<Vector3, Vector3> Snap
Field Value
Type |
Description |
System.Func<Vector3, Vector3> |
|
WorldToScreen
Declaration
public Func<Vector3, Vector2> WorldToScreen
Field Value
Type |
Description |
System.Func<Vector3, Vector2> |
|
Properties
lineTexture
Declaration
public Texture2D lineTexture { get; set; }
Property Value
Type |
Description |
Texture2D |
|
Methods
DrawGUIStyleCap(Int32, Vector3, Quaternion, Single, GUIStyle)
Declaration
public void DrawGUIStyleCap(int controlID, Vector3 position, Quaternion rotation, float size, GUIStyle guiStyle)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
GUIStyle |
guiStyle |
|
HandleSinglePointSelection()
Declaration
public void HandleSinglePointSelection()
OnGUI()
Declaration
PointCapHovered(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void PointCapHovered(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
PointCapNormal(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void PointCapNormal(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
PointCapPreview(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void PointCapPreview(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
PointCapSelected(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void PointCapSelected(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
SetDirty()
Declaration
TangentCapActive(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void TangentCapActive(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
TangentCapHovered(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void TangentCapHovered(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
TangentCapNormal(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public void TangentCapNormal(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
Type |
Name |
Description |
System.Int32 |
controlID |
|
Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
size |
|
EventType |
eventType |
|
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.