Merge commit '3f8716794ad9d685cfb9ed9dd230eb31cd8df10f'

This commit is contained in:
Pascal Serrarens 2026-04-08 09:33:52 +02:00
commit c9ad9f22a2
31 changed files with 797 additions and 1373 deletions

View File

@ -9,16 +9,9 @@ namespace NanoBrain {
[CustomEditor(typeof(ClusterPrefab))] [CustomEditor(typeof(ClusterPrefab))]
public class ClusterInspector : Editor { public class ClusterInspector : Editor {
protected static VisualElement mainContainer;
protected static VisualElement inspectorContainer;
protected bool breakOnWake = false;
#region Start
public override VisualElement CreateInspectorGUI() { public override VisualElement CreateInspectorGUI() {
ClusterPrefab prefab = target as ClusterPrefab; ClusterPrefab prefab = target as ClusterPrefab;
if (prefab != null) if (prefab != null)
prefab.EnsureInitialization(); prefab.EnsureInitialization();
@ -39,23 +32,22 @@ namespace NanoBrain {
root.styleSheets.Add(Resources.Load<StyleSheet>("GraphStyles")); root.styleSheets.Add(Resources.Load<StyleSheet>("GraphStyles"));
// does the main container have added value? VisualElement mainContainer = new() {
// is just is like the root
mainContainer = new() {
style = { style = {
height = 450,
flexDirection = FlexDirection.Row flexDirection = FlexDirection.Row
} }
}; };
GraphView graph = new(cluster); GraphView graph = new(cluster);
graph.style.flexGrow = 1; graph.style.flexGrow = 1;
inspectorContainer = new VisualElement { VisualElement inspectorContainer = new VisualElement {
name = "inspector", name = "inspector",
style = { style = {
width = 300, alignSelf = Align.Stretch,
flexGrow = 0 minHeight = 450,
} width = 300,
flexGrow = 0
}
}; };
mainContainer.Add(graph); mainContainer.Add(graph);
@ -67,7 +59,6 @@ namespace NanoBrain {
return graph; return graph;
} }
public class GraphView : VisualElement { public class GraphView : VisualElement {
readonly ClusterPrefab prefab; readonly ClusterPrefab prefab;
SerializedObject serializedBrain; SerializedObject serializedBrain;
@ -236,7 +227,6 @@ namespace NanoBrain {
} }
public void OnIMGUI() { public void OnIMGUI() {
if (currentNucleus == null) if (currentNucleus == null)
return; return;
@ -896,20 +886,6 @@ namespace NanoBrain {
BuildLayers(); BuildLayers();
} }
// protected void AddSelectorInput(Nucleus nucleus) {
// Selector newSelector = new(this.prefab, "New Selector");
// newSelector.AddReceiver(nucleus);
// this.currentNucleus = newSelector;
// BuildLayers();
// }
// protected void AddPulsarInput(Nucleus nucleus) {
// Pulsar newPulsar = new(this.prefab, "New Pulsar");
// newPulsar.AddReceiver(nucleus);
// this.currentNucleus = newPulsar;
// BuildLayers();
// }
protected virtual void AddMemoryCellInput(Nucleus nucleus) { protected virtual void AddMemoryCellInput(Nucleus nucleus) {
MemoryCell newMemory = new(this.prefab, "New memory cell"); MemoryCell newMemory = new(this.prefab, "New memory cell");
newMemory.AddReceiver(nucleus); newMemory.AddReceiver(nucleus);
@ -1090,13 +1066,11 @@ namespace NanoBrain {
#endregion Synapses #endregion Synapses
} }
#endregion Start
} }
public class NeuroidLayer { public class NeuroidLayer {
public int ix = 0; public int ix = 0;
public List<Nucleus> neuroids = new(); public List<Nucleus> neuroids = new();
} }
} }

View File

@ -25,7 +25,7 @@ class ConfigurationChecker {
public static void GlobalDefine(string name) { public static void GlobalDefine(string name) {
UnityEngine.Debug.Log("Define " + name); // UnityEngine.Debug.Log("Define " + name);
BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup; BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
NamedBuildTarget namedBuildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup); NamedBuildTarget namedBuildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup);
//string scriptDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); //string scriptDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
@ -39,7 +39,7 @@ class ConfigurationChecker {
} }
public static void GlobalUndefine(string name) { public static void GlobalUndefine(string name) {
UnityEngine.Debug.Log("Undefine " + name); // UnityEngine.Debug.Log("Undefine " + name);
BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup; BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
NamedBuildTarget namedBuildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup); NamedBuildTarget namedBuildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup);
// string scriptDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); // string scriptDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);

View File

@ -6,21 +6,21 @@ using UnityEngine.UIElements;
namespace NanoBrain { namespace NanoBrain {
[CustomEditor(typeof(NanoBrain))] [CustomEditor(typeof(Brain))]
public class NanoBrainComponent_Editor : Editor { public class NanoBrainComponent_Editor : Editor {
protected static VisualElement mainContainer; protected static VisualElement mainContainer;
protected static VisualElement inspectorContainer; protected static VisualElement inspectorContainer;
protected NanoBrain component; protected Brain component;
private SerializedProperty brainProp; private SerializedProperty brainProp;
ClusterInspector.GraphView board; //ClusterInspector.GraphView board;
public void OnEnable() { public void OnEnable() {
component = target as NanoBrain; component = target as Brain;
if (Application.isPlaying == false && serializedObject != null) { if (Application.isPlaying == false && serializedObject != null) {
string propertyName = nameof(NanoBrain.defaultBrain); string propertyName = nameof(Brain.defaultBrain);
brainProp = serializedObject.FindProperty(propertyName); brainProp = serializedObject.FindProperty(propertyName);
} }
} }
@ -35,7 +35,7 @@ namespace NanoBrain {
VisualElement root = new(); VisualElement root = new();
if (Application.isPlaying == false) { if (Application.isPlaying == false) {
PropertyField brainField = new(brainProp) { PropertyField brainField = new(brainProp) {
label = "Nano Brain" label = "Cluster Prefab"
}; };
root.Add(brainField); root.Add(brainField);
} }

View File

@ -7,7 +7,7 @@ namespace NanoBrain {
/// The NanoBrain Unity Componnent /// The NanoBrain Unity Componnent
/// </summary> /// </summary>
/// This implements the top-level NanoBrain Cluster /// This implements the top-level NanoBrain Cluster
public class NanoBrain : MonoBehaviour { public class Brain : MonoBehaviour {
/// <summary> /// <summary>
/// The Cluster prefab from which the cluster is created /// The Cluster prefab from which the cluster is created
/// </summary> /// </summary>

View File

@ -1,8 +1,8 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 61eea9f818639ec20b7a7bf4e86fff66 guid: b583a04a1d95b8e078089205438fa6fc
NativeFormatImporter: folderAsset: yes
DefaultImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 11400000
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 269c75a382a564e6f90c5727dbd364ae
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -14,13 +14,23 @@ MonoBehaviour:
m_EditorClassIdentifier: Assembly-CSharp::ClusterPrefab m_EditorClassIdentifier: Assembly-CSharp::ClusterPrefab
nuclei: nuclei:
- rid: 2262690531574022216 - rid: 2262690531574022216
- rid: 2642584026360840247
- rid: 2642584026360840250
- rid: 2642584026360840251
- rid: 2642584026360840252
- rid: 2642584026360840253
- rid: 2642584026360840256
- rid: 2642584026360840264
- rid: 2642584026360840265
- rid: 2642584026360840266
- rid: 2642584026360840267
references: references:
version: 2 version: 2
RefIds: RefIds:
- rid: -2 - rid: -2
type: {class: , ns: , asm: } type: {class: , ns: , asm: }
- rid: 2262690531574022216 - rid: 2262690531574022216
type: {class: Neuron, ns: , asm: Assembly-CSharp} type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data: data:
name: Output name: Output
clusterPrefab: {fileID: 11400000} clusterPrefab: {fileID: 11400000}
@ -57,3 +67,736 @@ MonoBehaviour:
m_RotationOrder: 4 m_RotationOrder: 4
curveMax: 1 curveMax: 1
_receivers: [] _receivers: []
- rid: 2642584026360840247
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses:
- neuron:
rid: 2642584026360840250
weight: 1
- neuron:
rid: 2642584026360840251
weight: 1
- neuron:
rid: 2642584026360840252
weight: 1
- neuron:
rid: 2642584026360840253
weight: 1
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840248
- rid: 2642584026360840248
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: Output
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840249
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses:
- neuron:
rid: 2642584026360840247
weight: 1
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers: []
- rid: 2642584026360840249
type: {class: Cluster, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: Identity (Instance)
clusterPrefab: {fileID: 0}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
prefab: {fileID: 11400000}
clusterNuclei:
- rid: 2642584026360840248
- rid: 2642584026360840250
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840247
- rid: 2642584026360840251
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840247
- rid: 2642584026360840252
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840247
- rid: 2642584026360840253
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840247
- rid: 2642584026360840256
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840257
- rid: 2642584026360840257
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: Output
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses:
- neuron:
rid: 2642584026360840256
weight: 1
- neuron:
rid: 2642584026360840264
weight: 1
- neuron:
rid: 2642584026360840265
weight: 1
- neuron:
rid: 2642584026360840266
weight: 1
- neuron:
rid: 2642584026360840267
weight: 1
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers: []
- rid: 2642584026360840258
type: {class: Cluster, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: Identity (Instance)
clusterPrefab: {fileID: 0}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
prefab: {fileID: 11400000}
clusterNuclei:
- rid: 2642584026360840257
- rid: 2642584026360840259
- rid: 2642584026360840260
- rid: 2642584026360840261
- rid: 2642584026360840262
- rid: 2642584026360840263
- rid: 2642584026360840259
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses:
- neuron:
rid: 2642584026360840260
weight: 1
- neuron:
rid: 2642584026360840261
weight: 1
- neuron:
rid: 2642584026360840262
weight: 1
- neuron:
rid: 2642584026360840263
weight: 1
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers: []
- rid: 2642584026360840260
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840259
- rid: 2642584026360840261
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840259
- rid: 2642584026360840262
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840259
- rid: 2642584026360840263
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: 2642584026360840258
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840259
- rid: 2642584026360840264
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840257
- rid: 2642584026360840265
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840257
- rid: 2642584026360840266
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840257
- rid: 2642584026360840267
type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data:
name: New neuron
clusterPrefab: {fileID: 11400000}
parent:
rid: -2
trace: 0
bias: {x: 0, y: 0, z: 0}
_synapses: []
combinator: 0
_curvePreset: 0
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1000
value: 1000
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
curveMax: 1
_receivers:
- rid: 2642584026360840257

File diff suppressed because it is too large Load Diff

View File

@ -11,18 +11,18 @@ MonoBehaviour:
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 60a957541c24c57e78018c202ebb1d9b, type: 3} m_Script: {fileID: 11500000, guid: 60a957541c24c57e78018c202ebb1d9b, type: 3}
m_Name: Velocity m_Name: Velocity
m_EditorClassIdentifier: Assembly-CSharp::ClusterPrefab m_EditorClassIdentifier: Assembly-CSharp::NanoBrain.ClusterPrefab
nuclei: nuclei:
- rid: 2262690551513219315 - rid: 2642584026360840192
- rid: 2262690551513219316 - rid: 2642584026360840193
- rid: 2262690551513219317 - rid: 2642584026360840194
references: references:
version: 2 version: 2
RefIds: RefIds:
- rid: -2 - rid: -2
type: {class: , ns: , asm: } type: {class: , ns: , asm: }
- rid: 2262690551513219315 - rid: 2642584026360840192
type: {class: Neuron, ns: , asm: Assembly-CSharp} type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data: data:
name: Velocity name: Velocity
clusterPrefab: {fileID: 11400000} clusterPrefab: {fileID: 11400000}
@ -31,12 +31,12 @@ MonoBehaviour:
trace: 0 trace: 0
bias: {x: 0, y: 0, z: 0} bias: {x: 0, y: 0, z: 0}
_synapses: _synapses:
- nucleus: - neuron:
rid: 2262690551513219316 rid: 2642584026360840193
weight: 1
- nucleus:
rid: 2262690551513219317
weight: 1 weight: 1
- neuron:
rid: 2642584026360840194
weight: -1
combinator: 0 combinator: 0
_curvePreset: 0 _curvePreset: 0
curve: curve:
@ -65,8 +65,8 @@ MonoBehaviour:
m_RotationOrder: 4 m_RotationOrder: 4
curveMax: 1 curveMax: 1
_receivers: [] _receivers: []
- rid: 2262690551513219316 - rid: 2642584026360840193
type: {class: Neuron, ns: , asm: Assembly-CSharp} type: {class: Neuron, ns: NanoBrain, asm: Assembly-CSharp}
data: data:
name: Position name: Position
clusterPrefab: {fileID: 11400000} clusterPrefab: {fileID: 11400000}
@ -103,17 +103,21 @@ MonoBehaviour:
m_RotationOrder: 4 m_RotationOrder: 4
curveMax: 1 curveMax: 1
_receivers: _receivers:
- rid: 2262690551513219315 - rid: 2642584026360840192
- rid: 2262690551513219317 - rid: 2642584026360840194
type: {class: MemoryCell, ns: , asm: Assembly-CSharp} - rid: 2642584026360840194
type: {class: MemoryCell, ns: NanoBrain, asm: Assembly-CSharp}
data: data:
name: New memory cell name: Last Position
clusterPrefab: {fileID: 11400000} clusterPrefab: {fileID: 11400000}
parent: parent:
rid: -2 rid: -2
trace: 0 trace: 0
bias: {x: 0, y: 0, z: 0} bias: {x: 0, y: 0, z: 0}
_synapses: [] _synapses:
- neuron:
rid: 2642584026360840193
weight: 1
combinator: 0 combinator: 0
_curvePreset: 0 _curvePreset: 0
curve: curve:
@ -124,5 +128,5 @@ MonoBehaviour:
m_RotationOrder: 4 m_RotationOrder: 4
curveMax: 1 curveMax: 1
_receivers: _receivers:
- rid: 2262690551513219315 - rid: 2642584026360840192
staticMemory: 0 staticMemory: 0

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: c61aecac62c26de4aaefb2612bcc9a5d guid: 61354a7773d5f24439c8ab5622728094
NativeFormatImporter: NativeFormatImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 11400000 mainObjectFileID: 11400000