Add neuroid details in inspector
This commit is contained in:
parent
fc4e1ea889
commit
ca48381dc2
@ -31,9 +31,15 @@ public class NanoBrain_Editor : Editor {
|
||||
#region Update
|
||||
|
||||
public override void OnInspectorGUI() {
|
||||
if (this.currentNucleus == null)
|
||||
return;
|
||||
|
||||
DrawGraph();
|
||||
|
||||
DrawDefaultInspector();
|
||||
//DrawDefaultInspector();
|
||||
EditorGUILayout.TextField("Name", currentNucleus.name);
|
||||
EditorGUILayout.FloatField("Output Value", currentNucleus.outputValue.magnitude);
|
||||
EditorGUILayout.IntField("# synapses", currentNucleus.synapses.Count);
|
||||
}
|
||||
|
||||
private void BuildLayers() {
|
||||
@ -86,7 +92,7 @@ public class NanoBrain_Editor : Editor {
|
||||
private void DrawGraph() {
|
||||
if (currentNucleus == null)
|
||||
return;
|
||||
Rect outer = EditorGUILayout.GetControlRect(false, 400);
|
||||
Rect outer = EditorGUILayout.GetControlRect(false, 420);
|
||||
GUI.BeginGroup(outer);
|
||||
foreach (NeuroidLayer layer in layers)
|
||||
DrawLayer(layer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user