Свойство | Тип | Описание | |
---|---|---|---|
ApplyDottedWireMaterial | void | ||
ApplyWireMaterial | void | ||
BeginHandles | void | ||
CalcRayPlaceOffset | float | ||
CameraNeedsToRenderIntoRT | bool | ||
DistanceToDiamond | float | ||
DistanceToDiamondInternal | float | ||
DistanceToRectangleInternal | float | ||
EndHandles | void | ||
FindNearestVertex | bool | ||
FindSelectionBase | |||
GetParametrization | float | ||
INTERNAL_CALL_CalcRayPlaceOffset | float | ||
INTERNAL_CALL_DistancePointBezier | float | ||
INTERNAL_CALL_Internal_FindNearestVertex | bool | ||
INTERNAL_CALL_Internal_PickClosestGO | |||
INTERNAL_CALL_Internal_PickRectObjects | UnityEngine.GameObject[] | ||
INTERNAL_CALL_IntersectRayMesh | bool | ||
InitHandleMaterials | void | ||
Internal_FindNearestVertex | bool | ||
Internal_PickClosestGO | |||
Internal_PickRectObjects | UnityEngine.GameObject[] | ||
Internal_Repaint | void | ||
Internal_SetHandleWireTextureIndex | void | ||
IntersectRayMesh | bool | ||
PickGameObject | |||
PickGameObject | |||
SetViewInfo | void |
Метод | Описание | |
---|---|---|
AddControl ( int controlId, float distance ) : void |
Record a distance measurement from a handle.
|
|
AddDefaultControl ( int controlId ) : void |
Add the ID for a default control. This will be picked if nothing else is.
|
|
CalcLineTranslation ( Vector2 src, Vector2 dest, Vector3 srcPosition, Vector3 constraintDir ) : float |
Map a mouse drag onto a movement along a line in 3D space.
|
|
ClosestPointToArc ( Vector3 center, Vector3 normal, Vector3 from, float angle, float radius ) : Vector3 |
Get the point on an arc (in 3D space) which is closest to the current mouse position.
|
|
ClosestPointToDisc ( Vector3 center, Vector3 normal, float radius ) : Vector3 |
Get the point on an disc (in 3D space) which is closest to the current mouse position.
|
|
ClosestPointToPolyLine ( ) : Vector3 |
Get the point on a polyline (in 3D space) which is closest to the current mouse position.
|
|
DistancePointBezier ( Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : float |
Calculate distance between a point and a Bezier curve.
|
|
DistancePointLine ( Vector3 point, Vector3 lineStart, Vector3 lineEnd ) : float |
Calculate distance between a point and a line.
|
|
DistancePointToLine ( Vector2 p, Vector2 a, Vector2 b ) : float |
Distance from a point p in 2d to a line defined by two points a and b.
|
|
DistancePointToLineSegment ( Vector2 p, Vector2 a, Vector2 b ) : float |
Distance from a point p in 2d to a line segment defined by two points a and b.
|
|
DistanceToArc ( Vector3 center, Vector3 normal, Vector3 from, float angle, float radius ) : float |
Pixel distance from mouse pointer to a 3D section of a disc.
|
|
DistanceToCircle ( Vector3 position, float radius ) : float |
Pixel distance from mouse pointer to camera facing circle.
|
|
DistanceToDisc ( Vector3 center, Vector3 normal, float radius ) : float |
Pixel distance from mouse pointer to a 3D disc.
|
|
DistanceToLine ( Vector3 p1, Vector3 p2 ) : float |
Pixel distance from mouse pointer to line.
|
|
DistanceToPolyLine ( ) : float |
Pixel distance from mouse pointer to a polyline.
|
|
DistanceToRectangle ( Vector3 position, |
Pixel distance from mouse pointer to a rectangle on screen.
|
|
GUIPointToWorldRay ( Vector2 position ) : |
Convert 2D GUI position to a world space ray.
|
|
GetHandleSize ( Vector3 position ) : float |
Get world space size of a manipulator handle at given position.
|
|
PickGameObject ( Vector2 position, |
||
PickGameObject ( Vector2 position, bool selectPrefabRoot ) : |
Pick game object closest to specified position.
|
|
PickGameObject ( Vector2 position, bool selectPrefabRoot, |
||
PickGameObject ( Vector2 position, int &materialIndex ) : |
||
PickRectObjects ( |
Pick GameObjects that lie within a specified screen rectangle.
|
|
PickRectObjects ( |
|
|
PointOnLineParameter ( Vector3 point, Vector3 linePoint, Vector3 lineDirection ) : float |
Returns the parameter for the projection of the point on the given line.
|
|
PopCamera ( |
Retrieve all camera settings.
|
|
ProjectPointLine ( Vector3 point, Vector3 lineStart, Vector3 lineEnd ) : Vector3 |
Project point onto a line.
|
|
PushCamera ( |
Store all camera settings.
|
|
RaySnap ( |
Casts ray against the scene and report if an object lies in its path.
|
|
Repaint ( ) : void |
Repaint the current view.
|
|
WorldPointToSizedRect ( Vector3 position, |
Calculate a rectangle to display a 2D GUI element near a projected point in 3D space.
|
|
WorldToGUIPoint ( Vector3 world ) : Vector2 |
Convert world space point to a 2D GUI position.
|
Метод | Описание | |
---|---|---|
ApplyDottedWireMaterial ( ) : void | ||
ApplyWireMaterial ( ) : void | ||
BeginHandles ( ) : void | ||
CalcRayPlaceOffset ( |
||
CameraNeedsToRenderIntoRT ( |
||
DistanceToDiamond ( Vector3 position, |
||
DistanceToDiamondInternal ( Vector3 position, |
||
DistanceToRectangleInternal ( Vector3 position, |
||
EndHandles ( ) : void | ||
FindNearestVertex ( Vector2 guiPoint, |
||
FindSelectionBase ( |
||
GetParametrization ( Vector2 x0, Vector2 x1, Vector2 x2 ) : float | ||
INTERNAL_CALL_CalcRayPlaceOffset ( |
||
INTERNAL_CALL_DistancePointBezier ( Vector3 &point, Vector3 &startPosition, Vector3 &endPosition, Vector3 &startTangent, Vector3 &endTangent ) : float | ||
INTERNAL_CALL_Internal_FindNearestVertex ( |
||
INTERNAL_CALL_Internal_PickClosestGO ( |
||
INTERNAL_CALL_Internal_PickRectObjects ( |
||
INTERNAL_CALL_IntersectRayMesh ( |
||
InitHandleMaterials ( ) : void | ||
Internal_FindNearestVertex ( |
||
Internal_PickClosestGO ( |
||
Internal_PickRectObjects ( |
||
Internal_Repaint ( ) : void | ||
Internal_SetHandleWireTextureIndex ( int textureIndex ) : void | ||
IntersectRayMesh ( |
||
PickGameObject ( Vector2 position, |
||
PickGameObject ( Vector2 position, bool selectPrefabRoot, |
||
SetViewInfo ( Vector2 screenPosition ) : void |
public static AddControl ( int controlId, float distance ) : void | ||
controlId | int | |
distance | float | |
Результат | void |
public static AddDefaultControl ( int controlId ) : void | ||
controlId | int | |
Результат | void |
public static CalcLineTranslation ( Vector2 src, Vector2 dest, Vector3 srcPosition, Vector3 constraintDir ) : float | ||
src | Vector2 | The source point of the drag. |
dest | Vector2 | The destination point of the drag. |
srcPosition | Vector3 | The 3D position the dragged object had at src ray. |
constraintDir | Vector3 | 3D direction of constrained movement. |
Результат | float |
public static ClosestPointToArc ( Vector3 center, Vector3 normal, Vector3 from, float angle, float radius ) : Vector3 | ||
center | Vector3 | |
normal | Vector3 | |
from | Vector3 | |
angle | float | |
radius | float | |
Результат | Vector3 |
public static ClosestPointToDisc ( Vector3 center, Vector3 normal, float radius ) : Vector3 | ||
center | Vector3 | |
normal | Vector3 | |
radius | float | |
Результат | Vector3 |
public static ClosestPointToPolyLine ( ) : Vector3 | ||
Результат | Vector3 |
public static DistancePointBezier ( Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : float | ||
point | Vector3 | |
startPosition | Vector3 | |
endPosition | Vector3 | |
startTangent | Vector3 | |
endTangent | Vector3 | |
Результат | float |
public static DistancePointLine ( Vector3 point, Vector3 lineStart, Vector3 lineEnd ) : float | ||
point | Vector3 | |
lineStart | Vector3 | |
lineEnd | Vector3 | |
Результат | float |
public static DistancePointToLine ( Vector2 p, Vector2 a, Vector2 b ) : float | ||
p | Vector2 | |
a | Vector2 | |
b | Vector2 | |
Результат | float |
public static DistancePointToLineSegment ( Vector2 p, Vector2 a, Vector2 b ) : float | ||
p | Vector2 | |
a | Vector2 | |
b | Vector2 | |
Результат | float |
public static DistanceToArc ( Vector3 center, Vector3 normal, Vector3 from, float angle, float radius ) : float | ||
center | Vector3 | |
normal | Vector3 | |
from | Vector3 | |
angle | float | |
radius | float | |
Результат | float |
public static DistanceToCircle ( Vector3 position, float radius ) : float | ||
position | Vector3 | |
radius | float | |
Результат | float |
public static DistanceToDisc ( Vector3 center, Vector3 normal, float radius ) : float | ||
center | Vector3 | |
normal | Vector3 | |
radius | float | |
Результат | float |
public static DistanceToLine ( Vector3 p1, Vector3 p2 ) : float | ||
p1 | Vector3 | |
p2 | Vector3 | |
Результат | float |
public static DistanceToPolyLine ( ) : float | ||
Результат | float |
public static DistanceToRectangle ( Vector3 position, |
||
position | Vector3 | |
rotation | ||
size | float | |
Результат | float |
public static GUIPointToWorldRay ( Vector2 position ) : |
||
position | Vector2 | |
Результат |
public static GetHandleSize ( Vector3 position ) : float | ||
position | Vector3 | The position of the handle in 3d space. |
Результат | float |
public static PickGameObject ( Vector2 position, |
||
position | Vector2 | |
ignore | ||
materialIndex | int | |
Результат |
public static PickGameObject ( Vector2 position, bool selectPrefabRoot ) : |
||
position | Vector2 | |
selectPrefabRoot | bool | Select prefab. |
Результат |
public static PickGameObject ( Vector2 position, bool selectPrefabRoot, |
||
position | Vector2 | |
selectPrefabRoot | bool | |
ignore | ||
Результат |
public static PickGameObject ( Vector2 position, int &materialIndex ) : |
||
position | Vector2 | |
materialIndex | int | |
Результат |
public static PickRectObjects ( |
||
rect | An screen rectangle specified with pixel coordinates. | |
Результат | UnityEngine.GameObject[] |
public static PickRectObjects ( |
||
rect | ||
selectPrefabRootsOnly | bool | |
Результат | UnityEngine.GameObject[] |
public static PointOnLineParameter ( Vector3 point, Vector3 linePoint, Vector3 lineDirection ) : float | ||
point | Vector3 | |
linePoint | Vector3 | |
lineDirection | Vector3 | |
Результат | float |
public static PopCamera ( |
||
camera | ||
Результат | void |
public static ProjectPointLine ( Vector3 point, Vector3 lineStart, Vector3 lineEnd ) : Vector3 | ||
point | Vector3 | |
lineStart | Vector3 | |
lineEnd | Vector3 | |
Результат | Vector3 |
public static PushCamera ( |
||
camera | ||
Результат | void |
public static RaySnap ( |
||
ray | ||
Результат | object |
public static WorldPointToSizedRect ( Vector3 position, |
||
position | Vector3 | The world-space position to use. |
content | The content to make room for. | |
style | The style to use. The style's alignment. | |
Результат |
public static WorldToGUIPoint ( Vector3 world ) : Vector2 | ||
world | Vector3 | Point in world space. |
Результат | Vector2 |