x


Can't call Handles.DrawPolyLine() from Boo

There was an earlier post with a similar issue when calling Handles.DrawAAPolyLine() from JS. I ran into the same problem in Boo with Handles.DrawPolyLine() in Unity 3.4:

def OnSceneGUI() :
   foo = (Vector3.zero, Vector3.one)
   Handles.DrawPolyLine(foo)

Assets/Scripts/Editor/MyTool.boo(97,29): BCE0017: The best overload for the method 'UnityEditor.Handles.DrawPolyLine(*(UnityEngine.Vector3))' is not compatible with the argument list '((UnityEngine.Vector3))'.

Calling with an explicit list of Vector3 parameters:

Handles.DrawPolyLine(Vector3.zero, Vector3.one)

compiles and works just fine of course rather impractical. I've called called other Unity functions from Boo with function signatures expecting an array of objects without problems.

I'm assuming this to be a bug?

more ▼

asked Aug 06 '11 at 01:11 AM

madsvlad gravatar image

madsvlad
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Looks like it is necessary to provide a C# wrapper for these Handles functions as described in the solution to this previous post.

more ▼

answered Aug 06 '11 at 01:45 AM

madsvlad gravatar image

madsvlad
1 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x70
x36
x18

asked: Aug 06 '11 at 01:11 AM

Seen: 681 times

Last Updated: Aug 06 '11 at 01:45 AM