Hi there,
I wanted to combine the action to speak a line with a speakers camera-switch, because both speakers have one for themselfs and the actionlist grows fast...
So I made an actionlist for this both actions but than I see I have to insert the IDs of camera and speaker. And the other ugly Thing for me: the String was not multiline.
So I made some changes:
I add _Camera and Char:
public enum ParameterType { GameObject, InventoryItem, GlobalVariable, LocalVariable, String, Float, Integer, Boolean, _Camera, Char };
around line 518 I add some stuff:
else if (externalParameters[i].parameterType == ParameterType.Char) {
localParameters[i].behaviour = (Char) EditorGUILayout.ObjectField ("Param Char:", localParameters[i].behaviour, typeof (Char), true);
}
else if (externalParameters[i].parameterType == ParameterType._Camera) {
localParameters[i].behaviour = (_Camera) EditorGUILayout.ObjectField ("Param Camera:", localParameters[i].behaviour, typeof (_Camera), true);
}
Comments