This is more of a suggestion/discussion point.
I was thinking it'd be cool if you could reference lines inside of action lists rather than having to explicitly specify them within the action list, which will (implicitly) create a new line every time.
Quite often I need to have a character say the same thing in different action lists.
Currently the two solutions (that I've found are):
- Duplicate the text and the corresponding speech file (waste of ram/hdd space)
- Create a new action list, stick the duplicated line(s) in there and call it from the action list that I want to use it in (less/no waste, but somewhat cumbersome)
A third solution would be to have the ability to "edit" the ID part of a Dialogue action in some way, so as to point it to another, pre-existing, line (so basically it's a "Reference Dialogue Action" rather than a default dialogue action)
Thoughts?
Comments
You can, however, modify the action very easily to expose the ID yourself. Open up ActionSpeech.cs, and find the ShowGUI function.
Replace:
if (lineID > -1)
{
EditorGUILayout.LabelField ("Speech Manager ID:", lineID.ToString ());
}
With:
lineID = EditorGUILayout.IntField ("Speech Manager ID: ", lineID);
Replace:
if (lineID > -1)
{
EditorGUILayout.LabelField ("Speech Manager ID:", lineID.ToString ());
}
With:
lineID = EditorGUILayout.IntField ("Speech Manager ID: ", lineID);
It is only working for ONE lineID
What happens when we have multilineIDs?
How we can change them then?
}