x


EditorGUIUtility.DrawCurveSwatch()

I've had no luck in getting this to work.

I assume it's supposed to be a curve editor but it only displays the curve on a solid background.

Is this all it is? No key handles/no editing/nothing pretty. Not even any borders on the control.

Anywho, thanks for any info.

I tried EditorGUIUtility.LooksLikeControls/LooksLikeInspector and they do nothing to change this.

more ▼

asked May 10 '11 at 08:25 PM

Inuous gravatar image

Inuous
6 3 3 3

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

1 answer: sort voted first

Like the name may suggest Draw CurveSwatch draws the curve, nothing more ;) The only controls that affect values are like all GUI elements inside EditorGUI or EditorGUILayout. You might want to use a EditorGUI.CurveField instead?

EditorGUIUtility contains just some utility functions most of them just influence the appearence but have no effect on the function (with some exceptions of course ;)).

more ▼

answered May 10 '11 at 11:23 PM

Bunny83 gravatar image

Bunny83
45.1k 11 48 206

Yeah I came to that unfortunate conclusion :). Thanks for the assist m8.

May 13 '11 at 10:00 AM Inuous
(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:

x3673
x83
x1

asked: May 10 '11 at 08:25 PM

Seen: 945 times

Last Updated: May 10 '11 at 08:25 PM