summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/DropdownSync.asset
blob: 8559006215a461703009358f663f314dc3ba3467 (plain)
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
%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: DropdownSync
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: 7b91526d878b29a43989fdbf06091c6e,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export uiDropdown\r\n    .sync dropdownValue,
    none\r\n    \r\n    __Boolean_0: %SystemBoolean, null\r\n    __Int32_0: %SystemInt32,
    null\r\n    __Int32_1: %SystemInt32, null\r\n    __player_0: %VRCSDKBaseVRCPlayerApi,
    null\r\n    __obj_0: %UnityEngineGameObject, this\r\n    __instance_1: %VRCUdonUdonBehaviour,
    this\r\n    __symbolName_0: %SystemString, null\r\n    __value_0: %SystemObject,
    null\r\n    __instance_0: %UnityEngineUIDropdown, null\r\n    __instance_2: %VRCUdonUdonBehaviour,
    this\r\n    __instance_3: %UnityEngineUIDropdown, null\r\n    __value_1: %SystemInt32,
    null\r\n    __name_0: %SystemString, null\r\n    uiDropdown: %UnityEngineUIDropdown,
    null\r\n    dropdownValue: %SystemInt32, null\r\n    __returnValue: %SystemObject,
    null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n    .export OnValueChanged\r\n   
    \r\n    OnValueChanged:\r\n    \r\n        PUSH, uiDropdown\r\n        PUSH,
    __instance_0\r\n        COPY\r\n        PUSH, __instance_0\r\n        PUSH, __Int32_0\r\n       
    EXTERN, \"UnityEngineUIDropdown.__get_value__SystemInt32\"\r\n        PUSH, __Int32_0\r\n       
    PUSH, dropdownValue\r\n        PUSH, __Boolean_0\r\n        EXTERN, \"SystemInt32.__op_Inequality__SystemInt32_SystemInt32__SystemBoolean\"\r\n       
    PUSH, __Boolean_0\r\n        JUMP_IF_FALSE, 0x000000E4\r\n        PUSH, __player_0\r\n       
    EXTERN, \"VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi\"\r\n       
    PUSH, __player_0\r\n        PUSH, __obj_0\r\n        EXTERN, \"VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid\"\r\n       
    PUSH, uiDropdown\r\n        PUSH, __instance_0\r\n        COPY\r\n        PUSH,
    __Int32_0\r\n        PUSH, __value_0\r\n        COPY\r\n        PUSH, __instance_1\r\n       
    PUSH, __symbolName_0\r\n        PUSH, __Int32_0\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__SetProgramVariable__SystemString_SystemObject__SystemVoid\"\r\n       
    PUSH, __instance_2\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid\"\r\n       
    JUMP, 0x000000E4\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n    .export _onVarChange_dropdownValue\r\n   
    \r\n    _onVarChange_dropdownValue:\r\n    \r\n        PUSH, uiDropdown\r\n       
    PUSH, __instance_3\r\n        COPY\r\n        PUSH, __instance_3\r\n        PUSH,
    dropdownValue\r\n        EXTERN, \"UnityEngineUIDropdown.__set_value__SystemInt32__SystemVoid\"\r\n       
    JUMP, 0xFFFFFFFC\r\n    \r\n\r\n.code_end\r\n"
  assemblyError: 
  graphData:
    name: 
    description: 
    nodes:
    - fullName: Get_Variable
      uid: 0cb40eff-4fec-4eed-ba1d-89008fe8cf27
      position: {x: -480, y: -510}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|f6eab4ad-3f34-49a9-8ac8-19d9b59d1d13
    - fullName: Set_Variable
      uid: 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      position: {x: 380, y: -560}
      nodeUIDs:
      - 
      - 2e9330b2-2126-4972-9455-b5e87ce4daef|0
      - 
      flowUIDs:
      - ae888b9b-5f27-40f5-a1ea-1baa70f8b0fa
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ea620532-514e-483b-8dc0-9d9ae3a645d2
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|True
    - fullName: Variable_UnityEngineUIDropdown
      uid: f6eab4ad-3f34-49a9-8ac8-19d9b59d1d13
      position: {x: 188, y: -432}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|uiDropdown
      - 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_SystemInt32
      uid: ea620532-514e-483b-8dc0-9d9ae3a645d2
      position: {x: -444, y: -852}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|dropdownValue
      - 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|True
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
    - fullName: UnityEngineUIDropdown.__get_value__SystemInt32
      uid: 2e9330b2-2126-4972-9455-b5e87ce4daef
      position: {x: -260, y: -510}
      nodeUIDs:
      - 0cb40eff-4fec-4eed-ba1d-89008fe8cf27|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineUIDropdown.__set_value__SystemInt32__SystemVoid
      uid: b08cdad0-1225-4352-8325-233aa50a9277
      position: {x: 170, y: -170}
      nodeUIDs:
      - 0b9bea0b-2d9b-4fba-865b-ed04d9a426cd|0
      - fb818708-44c5-4a4c-9753-0de66a997425|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
    - fullName: Event_Custom
      uid: ea9a568e-a801-46a5-8b35-7bfc4bfb49da
      position: {x: -280, y: -610}
      nodeUIDs:
      - 
      flowUIDs:
      - a7777e46-e783-4a80-a9c8-f542206e0534
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|OnValueChanged
    - fullName: Variable_SystemObject
      uid: cd9c3fce-43e2-4b4f-adc8-46e56163a3d2
      position: {x: -835, y: 90}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|__returnValue
      - 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: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
    - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid
      uid: ae888b9b-5f27-40f5-a1ea-1baa70f8b0fa
      position: {x: 580, y: -560}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid
      uid: a7df1c8a-d181-460c-92e4-f11284b2fc73
      position: {x: 240, y: -610}
      nodeUIDs:
      - 42b9c93b-521e-471a-aca0-5d608110c88f|0
      - 
      flowUIDs:
      - 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi
      uid: 42b9c93b-521e-471a-aca0-5d608110c88f
      position: {x: 80, y: -580}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: Event_OnVariableChange
      uid: fb818708-44c5-4a4c-9753-0de66a997425
      position: {x: -110, y: -220}
      nodeUIDs:
      - 
      flowUIDs:
      - b08cdad0-1225-4352-8325-233aa50a9277
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ea620532-514e-483b-8dc0-9d9ae3a645d2
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 0b9bea0b-2d9b-4fba-865b-ed04d9a426cd
      position: {x: -70, y: -80}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|f6eab4ad-3f34-49a9-8ac8-19d9b59d1d13
    - fullName: Branch
      uid: a7777e46-e783-4a80-a9c8-f542206e0534
      position: {x: 60, y: -460}
      nodeUIDs:
      - 1862e8d9-c8f0-4ba0-b119-d83c74930193|0
      flowUIDs:
      - a7df1c8a-d181-460c-92e4-f11284b2fc73
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
    - fullName: SystemInt32.__op_Inequality__SystemInt32_SystemInt32__SystemBoolean
      uid: 1862e8d9-c8f0-4ba0-b119-d83c74930193
      position: {x: -100, y: -440}
      nodeUIDs:
      - 2e9330b2-2126-4972-9455-b5e87ce4daef|0
      - ecd10661-99d1-4d05-bb43-299acf14383b|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
    - fullName: Get_Variable
      uid: ecd10661-99d1-4d05-bb43-299acf14383b
      position: {x: -300, y: -400}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ea620532-514e-483b-8dc0-9d9ae3a645d2
      - unityObjectValue: {fileID: 0}
        stringValue: 
    updateOrder: 0
  graphElementData:
  - type: 5
    uid: 1cb035c5-d656-463e-be8b-ad06d34178d9
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":136.0,"width":224.0,"height":159.0}}'
  - type: 4
    uid: 375ae574-056c-4f5d-a57b-0c9c2c87c61a
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
  - type: 2
    uid: 67ab29bd-9a7c-4ed7-b553-cde454bf847a
    jsonData: '{"uid":"67ab29bd-9a7c-4ed7-b553-cde454bf847a","layout":{"serializedVersion":"2","x":-140.0,"y":-280.0,"width":513.0,"height":312.0},"containedElements":["fb818708-44c5-4a4c-9753-0de66a997425","0b9bea0b-2d9b-4fba-865b-ed04d9a426cd","b08cdad0-1225-4352-8325-233aa50a9277"],"title":"Update
      Dropdown when Synced Var Changes","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: 5b2498dd-08e1-4c68-85a9-f6310aefc4dc
    jsonData: '{"uid":"5b2498dd-08e1-4c68-85a9-f6310aefc4dc","layout":{"serializedVersion":"2","x":-500.0,"y":-680.0,"width":1293.0,"height":383.0},"containedElements":["0cb40eff-4fec-4eed-ba1d-89008fe8cf27","89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c","2e9330b2-2126-4972-9455-b5e87ce4daef","ea9a568e-a801-46a5-8b35-7bfc4bfb49da","ae888b9b-5f27-40f5-a1ea-1baa70f8b0fa","a7df1c8a-d181-460c-92e4-f11284b2fc73","42b9c93b-521e-471a-aca0-5d608110c88f","8be4bd79-e6a9-485c-8c18-f0ddd63d42dd","1862e8d9-c8f0-4ba0-b119-d83c74930193","ecd10661-99d1-4d05-bb43-299acf14383b","a7777e46-e783-4a80-a9c8-f542206e0534","31e277cd-2079-4567-925e-982b1f4c304f","4868c934-23de-4e61-947d-50b6c3aca0a3"],"title":"When
      UI is changed, check that it''s different than the variable, then become owner
      and update it","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  viewTransform:
    position: {x: 904.4009, y: 1008.8304}
    scale: 0.8695652
  version: 1.0.0
  showAssembly: 0