Browse Source

Indented character object field on Say command

Note: This new property is useful if you want to define your characters
as prefabs and just link to the prefab instead of an instance in the
scene.
master
chrisgregan 10 years ago
parent
commit
0797b54d32
  1. 4
      Assets/Fungus/Narrative/Editor/SayEditor.cs

4
Assets/Fungus/Narrative/Editor/SayEditor.cs

@ -121,7 +121,11 @@ namespace Fungus
new GUIContent("Character", "Character that is speaking"),
new GUIContent("<None>"),
Character.activeCharacters);
EditorGUILayout.BeginHorizontal();
EditorGUILayout.PrefixLabel(" ");
characterProp.objectReferenceValue = (Character) EditorGUILayout.ObjectField(characterProp.objectReferenceValue, typeof(Character), true);
EditorGUILayout.EndHorizontal();
Say t = target as Say;

Loading…
Cancel
Save