playMaker

Author Topic: U Gui Drop Down Remove Option  (Read 102 times)

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 43
    • View Profile
U Gui Drop Down Remove Option
« on: October 14, 2017, 07:46:13 PM »
I would like to request ana ction that allows me to remove a specific option by name from a Drop down U GUI element.

Right now it is only possible to clear all options.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2254
    • View Profile
    • jinxtergames
Re: U Gui Drop Down Remove Option
« Reply #1 on: October 14, 2017, 09:34:35 PM »
Hi,
The problem for this is that i can only find a clear option on the unity documentation.
so i don't think it is possible.

There is a clear action and an add action.

another thing you could do is make 2 dropdown's and activate the one you need at the time.

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 43
    • View Profile
Re: U Gui Drop Down Remove Option
« Reply #2 on: October 15, 2017, 02:21:01 AM »
I see, thanks for the reply.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: U Gui Drop Down Remove Option
« Reply #3 on: October 16, 2017, 11:48:48 PM »
Hi,

 you simply clear and reconstruct your dropdown items. Maintain your items in an array ( or two arrays( and simply edit it when appropriate ( clear and populate the dropdown).

Bye,

 Jean