Interface ISpriteMeshView
Syntax
public interface ISpriteMeshView
Properties
closestEdge
Declaration
Property Value
Type |
Description |
System.Int32 |
|
defaultControlID
Declaration
int defaultControlID { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
frame
Declaration
Property Value
hoveredEdge
Declaration
Property Value
Type |
Description |
System.Int32 |
|
hoveredVertex
Declaration
int hoveredVertex { get; }
Property Value
Type |
Description |
System.Int32 |
|
mode
Declaration
SpriteMeshViewMode mode { get; set; }
Property Value
mouseWorldPosition
Declaration
Vector2 mouseWorldPosition { get; }
Property Value
selection
Declaration
ISelection selection { get; set; }
Property Value
Methods
BeginDrawEdges()
Declaration
CancelMode()
Declaration
DoCreateEdge()
Declaration
Returns
Type |
Description |
System.Boolean |
|
DoCreateVertex()
Declaration
Returns
Type |
Description |
System.Boolean |
|
DoMoveEdge(out Vector2)
Declaration
bool DoMoveEdge(out Vector2 delta)
Parameters
Type |
Name |
Description |
Vector2 |
delta |
|
Returns
Type |
Description |
System.Boolean |
|
DoMoveVertex(out Vector2)
Declaration
bool DoMoveVertex(out Vector2 delta)
Parameters
Type |
Name |
Description |
Vector2 |
delta |
|
Returns
Type |
Description |
System.Boolean |
|
DoRemove()
Declaration
Returns
Type |
Description |
System.Boolean |
|
DoSelectEdge(out Boolean)
Declaration
bool DoSelectEdge(out bool additive)
Parameters
Type |
Name |
Description |
System.Boolean |
additive |
|
Returns
Type |
Description |
System.Boolean |
|
DoSelectVertex(out Boolean)
Declaration
bool DoSelectVertex(out bool additive)
Parameters
Type |
Name |
Description |
System.Boolean |
additive |
|
Returns
Type |
Description |
System.Boolean |
|
DoSplitEdge()
Declaration
Returns
Type |
Description |
System.Boolean |
|
DrawEdge(Vector2, Vector2)
Declaration
void DrawEdge(Vector2 startPosition, Vector2 endPosition)
Parameters
Type |
Name |
Description |
Vector2 |
startPosition |
|
Vector2 |
endPosition |
|
DrawEdgeHovered(Vector2, Vector2)
Declaration
void DrawEdgeHovered(Vector2 startPosition, Vector2 endPosition)
Parameters
Type |
Name |
Description |
Vector2 |
startPosition |
|
Vector2 |
endPosition |
|
DrawEdgeSelected(Vector2, Vector2)
Declaration
void DrawEdgeSelected(Vector2 startPosition, Vector2 endPosition)
Parameters
Type |
Name |
Description |
Vector2 |
startPosition |
|
Vector2 |
endPosition |
|
DrawVertex(Vector2)
Declaration
void DrawVertex(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
DrawVertexHovered(Vector2)
Declaration
void DrawVertexHovered(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
DrawVertexSelected(Vector2)
Declaration
void DrawVertexSelected(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
EndDrawEdges()
Declaration
IsActionActive(MeshEditorAction)
Declaration
bool IsActionActive(MeshEditorAction action)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsActionHot(MeshEditorAction)
Declaration
bool IsActionHot(MeshEditorAction action)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LayoutEdge(Vector2, Vector2, Int32)
Declaration
void LayoutEdge(Vector2 startPosition, Vector2 endPosition, int index)
Parameters
Type |
Name |
Description |
Vector2 |
startPosition |
|
Vector2 |
endPosition |
|
System.Int32 |
index |
|
LayoutVertex(Vector2, Int32)
Declaration
void LayoutVertex(Vector2 position, int index)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
System.Int32 |
index |
|
SetupLayout()
Declaration
WorldToScreen(Vector2)
Declaration
Vector2 WorldToScreen(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
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.