Page 1 of 1
Accessing Actor Enum in Inspector
Posted: Thu Nov 08, 2018 5:54 am
by michaelheiml
Hi Tony,
is there a way to access the database actors in the inspector view of a custom script as variable?
I have an array and want to select an actor from a dropdown, same like the actor dropdown list in the dialogue entry inspector view.
Michael
Re: Accessing Actor Enum in Inspector
Posted: Thu Nov 08, 2018 8:18 am
by Tony Li
Yes, use the
[ActorPopup] attribute:
Code: Select all
using PixelCrushers.DialogueSystem;
...
[ActorPopup]
public string actor;
Re: Accessing Actor Enum in Inspector
Posted: Fri Nov 09, 2018 10:21 am
by michaelheiml
Hi Tony,
thanks for your suggestion, but it only works partially.
The dropdown is shown, but when I change one value of the list, all values are changed - see screenshot (I change e.g. "Flynn Kiss" ActorDB to "Flynn" and all ActorDB variables are changed at once (also those of Hannah in the given example).
- Screenshot 2018-11-09 at 16.20.10.png (109.11 KiB) Viewed 652 times
Re: Accessing Actor Enum in Inspector
Posted: Fri Nov 09, 2018 10:36 am
by Tony Li
That's a limitation that I addressed yesterday in the 2.0.6 update, which should release today after the completion of all QA tests.
Re: Accessing Actor Enum in Inspector
Posted: Mon Nov 12, 2018 3:54 am
by michaelheiml
Works great, thank you!