mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 02:58:44 +08:00
[unity] Handle Unity 5.6
This commit is contained in:
parent
affb9cf941
commit
7392883e49
@ -1676,8 +1676,13 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
const float endCapSize = 0.05f;
|
||||
Vector3 firstPoint = m.MultiplyPoint(new Vector3(pv[2], pv[3]));
|
||||
#if UNITY_5_6_OR_NEWER
|
||||
Handles.DotHandleCap(0, firstPoint, Quaternion.identity, endCapSize * HandleUtility.GetHandleSize(firstPoint), EventType.Ignore);
|
||||
#else
|
||||
Handles.DotCap(0, firstPoint, Quaternion.identity, endCapSize * HandleUtility.GetHandleSize(firstPoint));
|
||||
// if (!p.Closed) Handles.DotCap(0, m.MultiplyPoint(new Vector3(pv[n - 4], pv[n - 3])), q, endCapSize);
|
||||
#endif
|
||||
|
||||
// if (!p.Closed) Handles.DotCap(0, m.MultiplyPoint(new Vector3(pv[n - 4], pv[n - 3])), q, endCapSize);
|
||||
if (includeName) Handles.Label(firstPoint + new Vector3(0,0.1f), p.Name, PathNameStyle);
|
||||
|
||||
Handles.color = ocolor;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user