1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f11136daadff0b44ac2278a314682ab, type: 3}
m_Name: ChangeMaterialOnEvent
m_EditorClassIdentifier:
serializedUdonProgramAsset: {fileID: 11400000, guid: e92cc1fd5981ad64ba1cb341eaad7850,
type: 2}
udonAssembly: ".data_start\r\n\r\n .export materials\r\n .export meshRenderer\r\n
\r\n __Int32_0: %SystemInt32, null\r\n __Int32_1: %SystemInt32, null\r\n
__Int32_2: %SystemInt32, null\r\n __Int32_3: %SystemInt32, null\r\n __instance_0:
%UnityEngineMaterialArray, null\r\n __instance_1: %UnityEngineMeshRenderer,
null\r\n __value_0: %UnityEngineMaterial, null\r\n __instance_2: %UnityEngineMaterialArray,
null\r\n __Int32_4: %SystemInt32, null\r\n materials: %UnityEngineMaterialArray,
null\r\n meshRenderer: %UnityEngineMeshRenderer, null\r\n materialIndex:
%SystemInt32, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n .export changeMaterial\r\n
\r\n changeMaterial:\r\n \r\n PUSH, materialIndex\r\n PUSH,
__Int32_3\r\n PUSH, __Int32_0\r\n EXTERN, \"SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32\"\r\n
PUSH, materials\r\n PUSH, __instance_0\r\n COPY\r\n PUSH,
__instance_0\r\n PUSH, __Int32_1\r\n EXTERN, \"UnityEngineMaterialArray.__get_Length__SystemInt32\"\r\n
PUSH, __Int32_0\r\n PUSH, __Int32_1\r\n PUSH, materialIndex\r\n
EXTERN, \"SystemInt32.__op_Remainder__SystemInt32_SystemInt32__SystemInt32\"\r\n
PUSH, meshRenderer\r\n PUSH, __instance_1\r\n COPY\r\n PUSH,
materials\r\n PUSH, __instance_2\r\n COPY\r\n PUSH, __instance_2\r\n
PUSH, materialIndex\r\n PUSH, __value_0\r\n EXTERN, \"UnityEngineMaterialArray.__Get__SystemInt32__UnityEngineMaterial\"\r\n
PUSH, __instance_1\r\n PUSH, __value_0\r\n EXTERN, \"UnityEngineMeshRenderer.__set_material__UnityEngineMaterial__SystemVoid\"\r\n
JUMP, 0xFFFFFFFC\r\n \r\n\r\n.code_end\r\n"
assemblyError:
graphData:
name:
description:
nodes:
- fullName: Variable_UnityEngineMaterialArray
uid: fe8385e7-c2a1-4d82-8363-ee8de6d78be2
position: {x: 36, y: -204}
nodeUIDs:
-
-
-
-
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|materials
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|True
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|False
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Variable_UnityEngineMeshRenderer
uid: b63cb9da-6ee0-4c03-87c6-0d5f35513ee0
position: {x: -156, y: -204}
nodeUIDs:
-
-
-
-
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|meshRenderer
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|True
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|False
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: UnityEngineMeshRenderer.__set_material__UnityEngineMaterial__SystemVoid
uid: fbca1f82-f5e2-4547-a6d8-807a10e77cf5
position: {x: 1044, y: 312}
nodeUIDs:
- 0d68c6c1-ea12-4005-93ca-74d56e211008|0
- c5198e2b-92b1-496c-98e6-dd4c9e93d8c0|0
flowUIDs:
-
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Get_Variable
uid: 0d68c6c1-ea12-4005-93ca-74d56e211008
position: {x: 744, y: 300}
nodeUIDs:
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|b63cb9da-6ee0-4c03-87c6-0d5f35513ee0
- fullName: UnityEngineMaterialArray.__Get__SystemInt32__UnityEngineMaterial
uid: c5198e2b-92b1-496c-98e6-dd4c9e93d8c0
position: {x: 708, y: 408}
nodeUIDs:
- 6fb4681a-1e9b-4e7c-8002-2c8b8c9362d5|0
- 736cb6ee-2eab-4d86-ab58-74f6552a581f|0
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Get_Variable
uid: 6fb4681a-1e9b-4e7c-8002-2c8b8c9362d5
position: {x: 432, y: 396}
nodeUIDs:
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|fe8385e7-c2a1-4d82-8363-ee8de6d78be2
- fullName: Variable_SystemInt32
uid: 992035b4-304a-4f9a-adbc-ac3998c80bec
position: {x: 228, y: -204}
nodeUIDs:
-
-
-
-
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|materialIndex
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|False
- unityObjectValue: {fileID: 0}
stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089|False
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Get_Variable
uid: 4eb4be4a-1ae2-4943-89e5-3796e7493543
position: {x: -156, y: 108}
nodeUIDs:
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|992035b4-304a-4f9a-adbc-ac3998c80bec
- fullName: SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32
uid: 8b77ded6-d1ce-4682-830a-61bb23a70b83
position: {x: 108, y: 108}
nodeUIDs:
- 4eb4be4a-1ae2-4943-89e5-3796e7493543|0
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|1
- fullName: UnityEngineMaterialArray.__get_Length__SystemInt32
uid: c94dd94e-870c-4402-9e6e-6a8ab6ca1975
position: {x: 60, y: 252}
nodeUIDs:
- 3c51267b-e6de-4583-8843-a60e39eb7f34|0
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Get_Variable
uid: 3c51267b-e6de-4583-8843-a60e39eb7f34
position: {x: -192, y: 264}
nodeUIDs:
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|fe8385e7-c2a1-4d82-8363-ee8de6d78be2
- fullName: Get_Variable
uid: 736cb6ee-2eab-4d86-ab58-74f6552a581f
position: {x: 432, y: 468}
nodeUIDs:
-
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|992035b4-304a-4f9a-adbc-ac3998c80bec
- fullName: SystemInt32.__op_Remainder__SystemInt32_SystemInt32__SystemInt32
uid: 280397ff-d044-4416-bc2f-ee26d30514e3
position: {x: 396, y: 132}
nodeUIDs:
- 8b77ded6-d1ce-4682-830a-61bb23a70b83|0
- c94dd94e-870c-4402-9e6e-6a8ab6ca1975|0
flowUIDs: []
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue:
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Set_Variable
uid: 9d699e9a-b7cc-492d-ba94-432720eac3a3
position: {x: 708, y: 96}
nodeUIDs:
-
- 280397ff-d044-4416-bc2f-ee26d30514e3|0
flowUIDs:
- fbca1f82-f5e2-4547-a6d8-807a10e77cf5
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|992035b4-304a-4f9a-adbc-ac3998c80bec
- unityObjectValue: {fileID: 0}
stringValue:
- fullName: Event_Custom
uid: 2cef706c-572f-4ae7-b27b-016614d9ff04
position: {x: 456, y: 36}
nodeUIDs:
-
flowUIDs:
- 9d699e9a-b7cc-492d-ba94-432720eac3a3
nodeValues:
- unityObjectValue: {fileID: 0}
stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|changeMaterial
updateOrder: 0
graphElementData: []
viewTransform:
position: {x: 0, y: 0}
scale: 1
version: 1.0.0
showAssembly: 0
|