Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: sayezz on May 18, 2011, 06:45:00 AM
-
I have to extend the PlaymakerEditor.
My Scenario.
I have a .txt file filled with names (Denis, Paul, Michael...). This file is dynamic. So it is possible that on the next start i have 10 names and when i start it again on an other day i have only 3 names. so i never no what names and how many names are in this file.
I want to select the values in playmaker via a Dropdown.
At the moment i can only do dropdonws with enums, but the problem is that i cant fill a enum out of a txt file. I would like to extend the playmaker editor e.g. with UnityEditorWindow so i can use UserDropdown or something else.
How can i do this?
thx
say
Antoher Problem... how can i create new Vaiabletyps, e.g. FsmArrayList
-
Hi,
You can't extends the editor currently. So you can create your own FSmXXX values no. I don't know if there is a plan to do so.
What I would do in such case is write a fsm and possible a custom action that reads and parse your files and maintain a list as you describes it.
I have done a small funny proof of concept that is related to what you are willing to achieve:
http://hutonggames.com/playmakerforum/index.php?topic=183.msg763#msg763 (http://hutonggames.com/playmakerforum/index.php?topic=183.msg763#msg763)
http://www.screencast.com/t/chttWZ1B (http://www.screencast.com/t/chttWZ1B)
You can easily extrapolate on this to build an array of string and maintain your lists of names like so.
If you have problems implementing it, drop a reply, and we'll see what's possible.
Bye,
Jean