playMaker

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

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
U Gui Drop Down Remove Option
« on: October 14, 2017, 10: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: 6398
    • View Profile
    • jinxtergames
Re: U Gui Drop Down Remove Option
« Reply #1 on: October 15, 2017, 12:34:35 AM »
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.
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

C.J.Geringer

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15494
  • Official Playmaker Support
    • View Profile
Re: U Gui Drop Down Remove Option
« Reply #3 on: October 17, 2017, 02:48:48 AM »
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