summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/InputFieldSync.asset
blob: 35b0eff5602c38e366e35d37da1670318058f256 (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
279
280
281
282
283
284
%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: InputFieldSync
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: bdab7a748078e8a47ab6e51d14565e01,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export uiInputField\r\n    .sync fieldValue,
    none\r\n    \r\n    __Boolean_0: %SystemBoolean, null\r\n    __String_0: %SystemString,
    null\r\n    __String_1: %SystemString, 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: %UnityEngineUIInputField, null\r\n    __instance_2:
    %VRCUdonUdonBehaviour, this\r\n    __instance_3: %UnityEngineUIInputField, null\r\n   
    __value_1: %SystemString, null\r\n    __name_0: %SystemString, null\r\n    uiInputField:
    %UnityEngineUIInputField, null\r\n    fieldValue: %SystemString, null\r\n   
    __returnValue: %SystemObject, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n   
    .export OnEndEdit\r\n    \r\n    OnEndEdit:\r\n    \r\n        PUSH, uiInputField\r\n       
    PUSH, __instance_0\r\n        COPY\r\n        PUSH, __instance_0\r\n        PUSH,
    __String_0\r\n        EXTERN, \"UnityEngineUIInputField.__get_text__SystemString\"\r\n       
    PUSH, fieldValue\r\n        PUSH, __String_1\r\n        COPY\r\n        PUSH,
    __String_0\r\n        PUSH, __String_1\r\n        PUSH, __Boolean_0\r\n       
    EXTERN, \"SystemString.__op_Inequality__SystemString_SystemString__SystemBoolean\"\r\n       
    PUSH, __Boolean_0\r\n        JUMP_IF_FALSE, 0x000000F8\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, uiInputField\r\n        PUSH, __instance_0\r\n        COPY\r\n        PUSH,
    __String_0\r\n        PUSH, __value_0\r\n        COPY\r\n        PUSH, __instance_1\r\n       
    PUSH, __symbolName_0\r\n        PUSH, __String_0\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__SetProgramVariable__SystemString_SystemObject__SystemVoid\"\r\n       
    PUSH, __instance_2\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid\"\r\n       
    JUMP, 0x000000F8\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n    .export _onVarChange_fieldValue\r\n   
    \r\n    _onVarChange_fieldValue:\r\n    \r\n        PUSH, uiInputField\r\n       
    PUSH, __instance_3\r\n        COPY\r\n        PUSH, __instance_3\r\n        PUSH,
    fieldValue\r\n        EXTERN, \"UnityEngineUIInputField.__set_text__SystemString__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: -570, y: -110}
      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: 440, y: -160}
      nodeUIDs:
      - 
      - 390b2b52-bbe6-4144-87ba-12ce667722aa|0
      - 
      flowUIDs:
      - 6eca1f22-6fd9-45fb-a91c-b22aa81c26b6
      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_UnityEngineUIInputField
      uid: f6eab4ad-3f34-49a9-8ac8-19d9b59d1d13
      position: {x: 142.4, y: -333.5499}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|uiInputField
      - 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_SystemString
      uid: ea620532-514e-483b-8dc0-9d9ae3a645d2
      position: {x: -444, y: -828}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|fieldValue
      - 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: UnityEngineUIInputField.__get_text__SystemString
      uid: 390b2b52-bbe6-4144-87ba-12ce667722aa
      position: {x: -360, y: -110}
      nodeUIDs:
      - 0cb40eff-4fec-4eed-ba1d-89008fe8cf27|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineUIInputField.__set_text__SystemString__SystemVoid
      uid: 88ac05f5-5aca-4427-ab73-74a4440844a1
      position: {x: 10, y: 210}
      nodeUIDs:
      - 7e4128a3-2c0d-434f-b3e4-6c0706ed1753|0
      - 4c0a1c2e-83f3-4354-bd54-081107695a00|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Event_Custom
      uid: efc2f13a-6113-4e24-8698-020a22220c2f
      position: {x: -410, y: -210}
      nodeUIDs:
      - 
      flowUIDs:
      - 91fe498f-5d9f-499f-815e-a82cae144e73
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|OnEndEdit
    - fullName: VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid
      uid: 00f18aae-cc0b-46fd-809d-148756d7d410
      position: {x: 310, y: -210}
      nodeUIDs:
      - 4355f5f7-4caa-41af-8f9c-01658fdaa2ba|0
      - 
      flowUIDs:
      - 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi
      uid: 4355f5f7-4caa-41af-8f9c-01658fdaa2ba
      position: {x: 130, y: -150}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid
      uid: 6eca1f22-6fd9-45fb-a91c-b22aa81c26b6
      position: {x: 610, y: -160}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemObject
      uid: b1ef14f7-09d4-4fdd-8dad-feb7e4484043
      position: {x: 0, y: 0}
      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: Get_Variable
      uid: 7e4128a3-2c0d-434f-b3e4-6c0706ed1753
      position: {x: -240, y: 320}
      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: Event_OnVariableChange
      uid: 4c0a1c2e-83f3-4354-bd54-081107695a00
      position: {x: -240, y: 180}
      nodeUIDs:
      - 
      flowUIDs:
      - 88ac05f5-5aca-4427-ab73-74a4440844a1
      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: SystemString.__op_Inequality__SystemString_SystemString__SystemBoolean
      uid: 4136c903-d3f9-45c4-ad90-2836483ee843
      position: {x: -190, y: -60}
      nodeUIDs:
      - 390b2b52-bbe6-4144-87ba-12ce667722aa|0
      - 61a3d97b-85c6-4931-b7eb-5af1cc57400d|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 61a3d97b-85c6-4931-b7eb-5af1cc57400d
      position: {x: -360, y: -40}
      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: 
    - fullName: Branch
      uid: 91fe498f-5d9f-499f-815e-a82cae144e73
      position: {x: -20, y: -210}
      nodeUIDs:
      - 4136c903-d3f9-45c4-ad90-2836483ee843|0
      flowUIDs:
      - 00f18aae-cc0b-46fd-809d-148756d7d410
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
    updateOrder: 0
  graphElementData:
  - type: 2
    uid: 
    jsonData: '{"uid":"6cae173a-248b-4544-808f-bec85c802886","layout":{"serializedVersion":"2","x":550.0,"y":-705.0,"width":450.0,"height":308.0},"containedElements":["c5020263-8ec9-40ee-8935-86e91657ae20","5bc66cb4-befa-4100-a7a2-fd6498d7cd36","3e53df3f-8db9-465d-b828-687dc1ee22e0"],"title":"Approve
      Ownership Transfers","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 5
    uid: e027c6ca-385b-4a09-b984-66d2f4f38c3e
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":13.0,"y":26.0,"width":223.0,"height":194.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: 12909805-74be-40ec-bd95-a47364f709fe
    jsonData: '{"uid":"12909805-74be-40ec-bd95-a47364f709fe","layout":{"serializedVersion":"2","x":-270.0,"y":120.0,"width":451.0,"height":313.0},"containedElements":["88ac05f5-5aca-4427-ab73-74a4440844a1","7e4128a3-2c0d-434f-b3e4-6c0706ed1753","4c0a1c2e-83f3-4354-bd54-081107695a00"],"title":"Update
      text when fieldValue Changes","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: 82acebd0-d18e-4def-b018-e5caed36a642
    jsonData: '{"uid":"82acebd0-d18e-4def-b018-e5caed36a642","layout":{"serializedVersion":"2","x":-600.0,"y":-280.0,"width":1412.0,"height":348.0},"containedElements":["0cb40eff-4fec-4eed-ba1d-89008fe8cf27","89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c","390b2b52-bbe6-4144-87ba-12ce667722aa","efc2f13a-6113-4e24-8698-020a22220c2f","00f18aae-cc0b-46fd-809d-148756d7d410","4355f5f7-4caa-41af-8f9c-01658fdaa2ba","6eca1f22-6fd9-45fb-a91c-b22aa81c26b6","7e6437ef-5bfe-4403-8e21-0b710054b6cd","35f5296f-3392-4320-b521-728e899423d1","4136c903-d3f9-45c4-ad90-2836483ee843","61a3d97b-85c6-4931-b7eb-5af1cc57400d","91fe498f-5d9f-499f-815e-a82cae144e73"],"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: 672.1734, y: 432.6688}
    scale: 0.8695652
  version: 1.0.0
  showAssembly: 0