Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - strangeioc

Pages: [1]
1
If the group id is 0 (no group), it will ignore optionCanBeNone entirely, since that option only pertains to radio groups.

Ah, ok. That makes sense. Thanks.

2
Fair enough, though isn't this an intrinsic requirement for any toggleable boolean switch (i.e., I want to toggle a behavior like mute/unmute, rather than use it as part of a radio set). Maybe there's a better way to accomplish this?

3
I've noticed that I can't (can no longer?) set UIToggle.optionCanBeNone in the associated inspector, which seems wrong to me.

I've altered my local UIToggleInspector to:

  1.       NGUIEditorTools.DrawProperty("Starting State", serializedObject, "startsActive");
  2.       //New line here.......
  3.       NGUIEditorTools.DrawProperty("Option Can Be None", serializedObject, "optionCanBeNone");
  4.       NGUIEditorTools.SetLabelWidth(80f);
  5.  

Maybe I'm not understanding why you're not exposing optionCanBeNone, but it feels like an accidental omission. Anyway, just pointing it out.

Thanks.

Pages: [1]