Added the functionality to add RelayNode directly to edge between two Prot;

This commit is contained in:
Misaki
2024-11-07 00:42:52 +09:00
parent 02ae77f17a
commit 5ac1081d32
16 changed files with 243 additions and 150 deletions

View File

@@ -13,9 +13,9 @@ MonoBehaviour:
m_Name: GraphAsset
m_EditorClassIdentifier:
_nodes:
- rid: 299037570321612880
- rid: 299037570321612881
- rid: 299037570321612882
- rid: 299037621810888806
_stickyNotes:
- _id: 940a3025-e571-4b33-8d7c-c86761a95017
title: Title
@@ -36,26 +36,26 @@ MonoBehaviour:
direction: 0
valueType: System.Single
_outputSlotData:
slotName: _result
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
slotName: Output
nodeID: c9e7e09c-b463-42ad-b855-9081abb68942
slotIndex: 0
direction: 1
valueType: System.Single
valueType: System.Object
- _inputSlotData:
slotName: a
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
slotIndex: 0
direction: 0
valueType: System.Single
_outputSlotData:
slotName: value
nodeID: 5ee073fb-e411-4061-867a-9ce3afd9a188
slotIndex: 0
direction: 1
valueType: System.Object
_outputSlotData:
slotName: Input
nodeID: c9e7e09c-b463-42ad-b855-9081abb68942
slotIndex: 0
direction: 0
valueType: System.Object
_exposedProperties:
- rid: 299037523270959195
graphPosition: {x: 131.33333, y: -8, z: 0}
graphPosition: {x: 224, y: 84.666664, z: 0}
graphScale: {x: 1, y: 1, z: 1}
references:
version: 2
@@ -68,58 +68,6 @@ MonoBehaviour:
propertyType: Misaki.GraphView.Sample.FloatProperty
showInInspector: 1
value: 1
- rid: 299037570321612880
type: {class: Add, ns: Misaki.GraphView.Sample, asm: GraphView.Sample}
data:
graphObject: {fileID: 11400000}
id: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
position:
serializedVersion: 2
x: 534
y: 418
width: 116.66669
height: 102.66666
_inputs:
- _linkedSlotData:
- slotName: value
nodeID: 5ee073fb-e411-4061-867a-9ce3afd9a188
slotIndex: 0
direction: 1
valueType: System.Object
owner:
rid: 299037570321612880
slotData:
slotName: a
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
slotIndex: 0
direction: 0
valueType: System.Single
- _linkedSlotData: []
owner:
rid: 299037570321612880
slotData:
slotName: b
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
slotIndex: 1
direction: 0
valueType: System.Single
_outputs:
- _linkedSlotData:
- slotName: _input
nodeID: 1d18af80-6a54-4cdc-b49c-b53e74f56404
slotIndex: 0
direction: 0
valueType: System.Single
owner:
rid: 299037570321612880
slotData:
slotName: _result
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
slotIndex: 0
direction: 1
valueType: System.Single
a: 1
b: 1
- rid: 299037570321612881
type: {class: Output, ns: Misaki.GraphView.Sample, asm: GraphView.Sample}
data:
@@ -127,17 +75,27 @@ MonoBehaviour:
id: 1d18af80-6a54-4cdc-b49c-b53e74f56404
position:
serializedVersion: 2
x: 760
y: 418
x: 709.7862
y: 417.86685
width: 124.66669
height: 78.66666
_inputs:
- _linkedSlotData:
- slotName: _result
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
nodeID: fea7bcdd-0c2a-464f-a21a-126383bafb2e
slotIndex: 0
direction: 1
valueType: System.Single
- slotName: Output
nodeID: 104c0451-a164-449e-9d90-d629cdc33150
slotIndex: 0
direction: 1
valueType: System.Object
- slotName: Output
nodeID: c9e7e09c-b463-42ad-b855-9081abb68942
slotIndex: 0
direction: 1
valueType: System.Object
owner:
rid: 299037570321612881
slotData:
@@ -154,18 +112,28 @@ MonoBehaviour:
id: 5ee073fb-e411-4061-867a-9ce3afd9a188
position:
serializedVersion: 2
x: 357.66666
y: 484.6665
x: 264
y: 460
width: 98.66666
height: 36
height: 35.99997
_inputs: []
_outputs:
- _linkedSlotData:
- slotName: a
nodeID: 31f46c9e-45f1-418a-bb4b-cc843ea9242a
nodeID: fea7bcdd-0c2a-464f-a21a-126383bafb2e
slotIndex: 0
direction: 0
valueType: System.Single
- slotName: Input
nodeID: 104c0451-a164-449e-9d90-d629cdc33150
slotIndex: 0
direction: 0
valueType: System.Object
- slotName: Input
nodeID: c9e7e09c-b463-42ad-b855-9081abb68942
slotIndex: 0
direction: 0
valueType: System.Object
owner:
rid: 299037570321612882
slotData:
@@ -176,3 +144,15 @@ MonoBehaviour:
valueType: System.Object
_property:
rid: 299037523270959195
- rid: 299037621810888806
type: {class: RelayNode, ns: Misaki.GraphView, asm: GraphView}
data:
graphObject: {fileID: 11400000}
id: c9e7e09c-b463-42ad-b855-9081abb68942
position:
serializedVersion: 2
x: 500.66666
y: 462.66666
width: 74.66669
height: 33.333313
portValueType: System.Single