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
Accessing Actor Enum in Inspector
Re: Accessing Actor Enum in Inspector
Yes, use the [ActorPopup] attribute:
Code: Select all
using PixelCrushers.DialogueSystem;
...
[ActorPopup]
public string actor;
-
- Posts: 46
- Joined: Thu Nov 08, 2018 5:47 am
Re: Accessing Actor Enum in Inspector
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).
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).
Re: Accessing Actor Enum in Inspector
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.
-
- Posts: 46
- Joined: Thu Nov 08, 2018 5:47 am
Re: Accessing Actor Enum in Inspector
Works great, thank you!