8#define ES_EDITOR_API_SCHEMA_HASH "ca50111e97f679cf"
10#include <emscripten/bind.h>
57#include <glm/gtc/quaternion.hpp>
65inline glm::vec3 quatToEulerDeg(
const glm::quat& q) {
66 return glm::degrees(glm::eulerAngles(q));
68inline glm::quat eulerDegToQuat(
const glm::vec3& deg) {
69 return glm::quat(glm::radians(deg));
74std::vector<std::string> editor_getComponentNames() {
84 "CharacterController3D",
90 "DragonBonesAnimation",
108 "ParticleForceField",
120 "SpringBoneCollider",
137std::string editor_getComponentSchema(
const std::string& name) {
138 if (name ==
"Billboard") {
140 {"key":"mode","type":"int","group":"Billboard"},
141 {"key":"enabled","type":"bool","group":"Billboard"}
143 } else if (name ==
"BitmapText") {
145 {"key":"text","type":"string","group":"BitmapText"},
146 {"key":"color.r","type":"color","group":"BitmapText"},
147 {"key":"color.g","type":"color","group":"BitmapText"},
148 {"key":"color.b","type":"color","group":"BitmapText"},
149 {"key":"color.a","type":"color","group":"BitmapText"},
150 {"key":"fontSize","type":"float","group":"BitmapText"},
151 {"key":"align","type":"enum","group":"BitmapText","values":["Left","Center","Right"]},
152 {"key":"spacing","type":"float","group":"BitmapText"},
153 {"key":"parallax.x","type":"float","group":"BitmapText"},
154 {"key":"parallax.y","type":"float","group":"BitmapText"},
155 {"key":"layer","type":"int","group":"BitmapText"},
156 {"key":"font","type":"asset","group":"BitmapText"},
157 {"key":"enabled","type":"bool","group":"BitmapText"}
159 } else if (name ==
"BoxCollider2D") {
161 {"key":"halfExtents.x","type":"float","group":"BoxCollider2D"},
162 {"key":"halfExtents.y","type":"float","group":"BoxCollider2D"},
163 {"key":"offset.x","type":"float","group":"BoxCollider2D"},
164 {"key":"offset.y","type":"float","group":"BoxCollider2D"},
165 {"key":"density","type":"float","group":"BoxCollider2D"},
166 {"key":"friction","type":"float","group":"BoxCollider2D"},
167 {"key":"restitution","type":"float","group":"BoxCollider2D"},
168 {"key":"isSensor","type":"bool","group":"BoxCollider2D"},
169 {"key":"enabled","type":"bool","group":"BoxCollider2D"},
170 {"key":"categoryBits","type":"int","group":"BoxCollider2D"},
171 {"key":"maskBits","type":"int","group":"BoxCollider2D"}
173 } else if (name ==
"BoxCollider3D") {
175 {"key":"halfExtents.x","type":"float","group":"BoxCollider3D"},
176 {"key":"halfExtents.y","type":"float","group":"BoxCollider3D"},
177 {"key":"halfExtents.z","type":"float","group":"BoxCollider3D"},
178 {"key":"center.x","type":"float","group":"BoxCollider3D"},
179 {"key":"center.y","type":"float","group":"BoxCollider3D"},
180 {"key":"center.z","type":"float","group":"BoxCollider3D"},
181 {"key":"friction","type":"float","group":"BoxCollider3D"},
182 {"key":"restitution","type":"float","group":"BoxCollider3D"},
183 {"key":"isSensor","type":"bool","group":"BoxCollider3D"},
184 {"key":"enabled","type":"bool","group":"BoxCollider3D"}
186 } else if (name ==
"Camera") {
188 {"key":"projectionType","type":"enum","group":"Camera","values":["Perspective","Orthographic"]},
189 {"key":"fov","type":"float","group":"Camera"},
190 {"key":"orthoSize","type":"float","group":"Camera"},
191 {"key":"nearPlane","type":"float","group":"Camera"},
192 {"key":"farPlane","type":"float","group":"Camera"},
193 {"key":"aspectRatio","type":"float","group":"Camera"},
194 {"key":"isActive","type":"bool","group":"Camera"},
195 {"key":"priority","type":"int","group":"Camera"},
196 {"key":"viewport.x","type":"float","group":"Camera"},
197 {"key":"viewport.y","type":"float","group":"Camera"},
198 {"key":"viewport.z","type":"float","group":"Camera"},
199 {"key":"viewport.w","type":"float","group":"Camera"},
200 {"key":"clearFlags","type":"enum","group":"Camera","values":["Nothing","Color","Depth","ColorAndDepth"]},
201 {"key":"pixelPerfect","type":"bool","group":"Camera"},
202 {"key":"cullingMask","type":"int","group":"Camera"},
203 {"key":"renderTarget","type":"int","group":"Camera"}
205 } else if (name ==
"Canvas") {
207 {"key":"designResolution.x","type":"int","group":"Canvas"},
208 {"key":"designResolution.y","type":"int","group":"Canvas"},
209 {"key":"pixelsPerUnit","type":"float","group":"Canvas"},
210 {"key":"scaleMode","type":"enum","group":"Canvas","values":["FixedWidth","FixedHeight","Expand","Shrink","Match"]},
211 {"key":"matchWidthOrHeight","type":"float","group":"Canvas"},
212 {"key":"backgroundColor.r","type":"color","group":"Canvas"},
213 {"key":"backgroundColor.g","type":"color","group":"Canvas"},
214 {"key":"backgroundColor.b","type":"color","group":"Canvas"},
215 {"key":"backgroundColor.a","type":"color","group":"Canvas"},
216 {"key":"layer","type":"int","group":"Canvas"}
218 } else if (name ==
"CapsuleCollider2D") {
220 {"key":"radius","type":"float","group":"CapsuleCollider2D"},
221 {"key":"halfHeight","type":"float","group":"CapsuleCollider2D"},
222 {"key":"offset.x","type":"float","group":"CapsuleCollider2D"},
223 {"key":"offset.y","type":"float","group":"CapsuleCollider2D"},
224 {"key":"density","type":"float","group":"CapsuleCollider2D"},
225 {"key":"friction","type":"float","group":"CapsuleCollider2D"},
226 {"key":"restitution","type":"float","group":"CapsuleCollider2D"},
227 {"key":"isSensor","type":"bool","group":"CapsuleCollider2D"},
228 {"key":"enabled","type":"bool","group":"CapsuleCollider2D"},
229 {"key":"categoryBits","type":"int","group":"CapsuleCollider2D"},
230 {"key":"maskBits","type":"int","group":"CapsuleCollider2D"}
232 } else if (name ==
"CapsuleCollider3D") {
234 {"key":"radius","type":"float","group":"CapsuleCollider3D"},
235 {"key":"halfHeight","type":"float","group":"CapsuleCollider3D"},
236 {"key":"center.x","type":"float","group":"CapsuleCollider3D"},
237 {"key":"center.y","type":"float","group":"CapsuleCollider3D"},
238 {"key":"center.z","type":"float","group":"CapsuleCollider3D"},
239 {"key":"friction","type":"float","group":"CapsuleCollider3D"},
240 {"key":"restitution","type":"float","group":"CapsuleCollider3D"},
241 {"key":"isSensor","type":"bool","group":"CapsuleCollider3D"},
242 {"key":"enabled","type":"bool","group":"CapsuleCollider3D"}
244 } else if (name ==
"CharacterController3D") {
246 {"key":"velocity.x","type":"float","group":"CharacterController3D"},
247 {"key":"velocity.y","type":"float","group":"CharacterController3D"},
248 {"key":"velocity.z","type":"float","group":"CharacterController3D"},
249 {"key":"radius","type":"float","group":"CharacterController3D"},
250 {"key":"halfHeight","type":"float","group":"CharacterController3D"},
251 {"key":"maxSlope","type":"float","group":"CharacterController3D"},
252 {"key":"stepHeight","type":"float","group":"CharacterController3D"},
253 {"key":"snapDown","type":"float","group":"CharacterController3D"},
254 {"key":"mass","type":"float","group":"CharacterController3D"},
255 {"key":"pushForce","type":"float","group":"CharacterController3D"},
256 {"key":"enabled","type":"bool","group":"CharacterController3D"},
257 {"key":"layer","type":"int","group":"CharacterController3D"},
258 {"key":"isOnFloor","type":"bool","group":"CharacterController3D"},
259 {"key":"floorNormal.x","type":"float","group":"CharacterController3D"},
260 {"key":"floorNormal.y","type":"float","group":"CharacterController3D"},
261 {"key":"floorNormal.z","type":"float","group":"CharacterController3D"},
262 {"key":"realVelocity.x","type":"float","group":"CharacterController3D"},
263 {"key":"realVelocity.y","type":"float","group":"CharacterController3D"},
264 {"key":"realVelocity.z","type":"float","group":"CharacterController3D"}
266 } else if (name ==
"Children") {
268 {"key":"entities","type":"entity","group":"Children"}
270 } else if (name ==
"CircleCollider2D") {
272 {"key":"radius","type":"float","group":"CircleCollider2D"},
273 {"key":"offset.x","type":"float","group":"CircleCollider2D"},
274 {"key":"offset.y","type":"float","group":"CircleCollider2D"},
275 {"key":"density","type":"float","group":"CircleCollider2D"},
276 {"key":"friction","type":"float","group":"CircleCollider2D"},
277 {"key":"restitution","type":"float","group":"CircleCollider2D"},
278 {"key":"isSensor","type":"bool","group":"CircleCollider2D"},
279 {"key":"enabled","type":"bool","group":"CircleCollider2D"},
280 {"key":"categoryBits","type":"int","group":"CircleCollider2D"},
281 {"key":"maskBits","type":"int","group":"CircleCollider2D"}
283 } else if (name ==
"ContentRect") {
285 {"key":"size.x","type":"float","group":"ContentRect"},
286 {"key":"size.y","type":"float","group":"ContentRect"},
287 {"key":"pivot.x","type":"float","group":"ContentRect"},
288 {"key":"pivot.y","type":"float","group":"ContentRect"}
290 } else if (name ==
"ConvexCollider3D") {
292 {"key":"mesh","type":"asset","group":"ConvexCollider3D"},
293 {"key":"friction","type":"float","group":"ConvexCollider3D"},
294 {"key":"restitution","type":"float","group":"ConvexCollider3D"},
295 {"key":"isSensor","type":"bool","group":"ConvexCollider3D"},
296 {"key":"enabled","type":"bool","group":"ConvexCollider3D"}
298 } else if (name ==
"Draggable") {
300 {"key":"enabled","type":"bool","group":"Draggable"},
301 {"key":"dragThreshold","type":"float","group":"Draggable"},
302 {"key":"lockX","type":"bool","group":"Draggable"},
303 {"key":"lockY","type":"bool","group":"Draggable"},
304 {"key":"constrainMin","type":"bool","group":"Draggable"},
305 {"key":"constraintMin.x","type":"float","group":"Draggable"},
306 {"key":"constraintMin.y","type":"float","group":"Draggable"},
307 {"key":"constrainMax","type":"bool","group":"Draggable"},
308 {"key":"constraintMax.x","type":"float","group":"Draggable"},
309 {"key":"constraintMax.y","type":"float","group":"Draggable"}
311 } else if (name ==
"DragonBonesAnimation") {
313 {"key":"skeletonPath","type":"asset","group":"DragonBonesAnimation"},
314 {"key":"atlasPath","type":"asset","group":"DragonBonesAnimation"},
315 {"key":"armature","type":"string","group":"DragonBonesAnimation"},
316 {"key":"animation","type":"string","group":"DragonBonesAnimation"},
317 {"key":"timeScale","type":"float","group":"DragonBonesAnimation"},
318 {"key":"loop","type":"bool","group":"DragonBonesAnimation"},
319 {"key":"playing","type":"bool","group":"DragonBonesAnimation"},
320 {"key":"fadeInTime","type":"float","group":"DragonBonesAnimation"},
321 {"key":"flipX","type":"bool","group":"DragonBonesAnimation"},
322 {"key":"flipY","type":"bool","group":"DragonBonesAnimation"},
323 {"key":"color.r","type":"color","group":"DragonBonesAnimation"},
324 {"key":"color.g","type":"color","group":"DragonBonesAnimation"},
325 {"key":"color.b","type":"color","group":"DragonBonesAnimation"},
326 {"key":"color.a","type":"color","group":"DragonBonesAnimation"},
327 {"key":"layer","type":"int","group":"DragonBonesAnimation"},
328 {"key":"skeletonScale","type":"float","group":"DragonBonesAnimation"},
329 {"key":"material","type":"asset","group":"DragonBonesAnimation"},
330 {"key":"enabled","type":"bool","group":"DragonBonesAnimation"}
332 } else if (name ==
"FlexContainer") {
334 {"key":"direction","type":"enum","group":"FlexContainer","values":["Row","Column","RowReverse","ColumnReverse"]},
335 {"key":"wrap","type":"enum","group":"FlexContainer","values":["NoWrap","Wrap"]},
336 {"key":"justifyContent","type":"enum","group":"FlexContainer","values":["Start","Center","End","SpaceBetween","SpaceAround","SpaceEvenly"]},
337 {"key":"alignItems","type":"enum","group":"FlexContainer","values":["Start","Center","End","Stretch"]},
338 {"key":"alignContent","type":"enum","group":"FlexContainer","values":["Start","Center","End","Stretch","SpaceBetween","SpaceAround"]},
339 {"key":"gap.x","type":"float","group":"FlexContainer"},
340 {"key":"gap.y","type":"float","group":"FlexContainer"},
341 {"key":"padding.left","type":"float","group":"FlexContainer"},
342 {"key":"padding.top","type":"float","group":"FlexContainer"},
343 {"key":"padding.right","type":"float","group":"FlexContainer"},
344 {"key":"padding.bottom","type":"float","group":"FlexContainer"}
346 } else if (name ==
"GroupOpacity") {
348 {"key":"opacity","type":"float","group":"GroupOpacity"},
349 {"key":"enabled","type":"bool","group":"GroupOpacity"}
351 } else if (name ==
"Impostor") {
353 {"key":"screenSize","type":"float","group":"Impostor"},
354 {"key":"frames","type":"int","group":"Impostor"},
355 {"key":"resolution","type":"int","group":"Impostor"},
356 {"key":"enabled","type":"bool","group":"Impostor"}
358 } else if (name ==
"Interactable") {
360 {"key":"enabled","type":"bool","group":"Interactable"},
361 {"key":"blockRaycast","type":"bool","group":"Interactable"},
362 {"key":"raycastTarget","type":"bool","group":"Interactable"}
364 } else if (name ==
"LODGroup") {
366 {"key":"lod1","type":"asset","group":"LODGroup"},
367 {"key":"lod2","type":"asset","group":"LODGroup"},
368 {"key":"lod3","type":"asset","group":"LODGroup"},
369 {"key":"lod1Size","type":"float","group":"LODGroup"},
370 {"key":"lod2Size","type":"float","group":"LODGroup"},
371 {"key":"lod3Size","type":"float","group":"LODGroup"},
372 {"key":"cullSize","type":"float","group":"LODGroup"},
373 {"key":"hysteresis","type":"float","group":"LODGroup"},
374 {"key":"enabled","type":"bool","group":"LODGroup"}
376 } else if (name ==
"Light") {
378 {"key":"type","type":"int","group":"Light"},
379 {"key":"color.r","type":"color","group":"Light"},
380 {"key":"color.g","type":"color","group":"Light"},
381 {"key":"color.b","type":"color","group":"Light"},
382 {"key":"color.a","type":"color","group":"Light"},
383 {"key":"intensity","type":"float","group":"Light"},
384 {"key":"radius","type":"float","group":"Light"},
385 {"key":"innerRadius","type":"float","group":"Light"},
386 {"key":"falloff","type":"float","group":"Light"},
387 {"key":"inverseSquare","type":"bool","group":"Light"},
388 {"key":"shadowStrength","type":"float","group":"Light"},
389 {"key":"layerMin","type":"int","group":"Light"},
390 {"key":"layerMax","type":"int","group":"Light"},
391 {"key":"cookie","type":"asset","group":"Light"},
392 {"key":"cookieSize.x","type":"float","group":"Light"},
393 {"key":"cookieSize.y","type":"float","group":"Light"},
394 {"key":"innerAngle","type":"float","group":"Light"},
395 {"key":"outerAngle","type":"float","group":"Light"},
396 {"key":"shadowSoftness","type":"float","group":"Light"},
397 {"key":"sourceAngle","type":"float","group":"Light"},
398 {"key":"shadowDistance","type":"float","group":"Light"},
399 {"key":"meshShadows","type":"bool","group":"Light"},
400 {"key":"shadowExtent","type":"float","group":"Light"},
401 {"key":"cascadeSplit","type":"float","group":"Light"},
402 {"key":"shadowBias","type":"float","group":"Light"},
403 {"key":"shadowSlopeFloor","type":"float","group":"Light"},
404 {"key":"followEnvironmentSun","type":"bool","group":"Light"},
405 {"key":"aimFollowedSun","type":"bool","group":"Light"},
406 {"key":"environment","type":"asset","group":"Light"},
407 {"key":"environmentRotation","type":"float","group":"Light"},
408 {"key":"drawEnvironment","type":"bool","group":"Light"},
409 {"key":"reflectionScale","type":"float","group":"Light"},
410 {"key":"diffuseScale","type":"float","group":"Light"},
411 {"key":"diffuseTint.r","type":"color","group":"Light"},
412 {"key":"diffuseTint.g","type":"color","group":"Light"},
413 {"key":"diffuseTint.b","type":"color","group":"Light"},
414 {"key":"diffuseTint.a","type":"color","group":"Light"},
415 {"key":"reflectionSaturation","type":"float","group":"Light"},
416 {"key":"bakedTint.r","type":"color","group":"Light"},
417 {"key":"bakedTint.g","type":"color","group":"Light"},
418 {"key":"bakedTint.b","type":"color","group":"Light"},
419 {"key":"bakedTint.a","type":"color","group":"Light"},
420 {"key":"hemisphere","type":"bool","group":"Light"},
421 {"key":"groundColor.r","type":"color","group":"Light"},
422 {"key":"groundColor.g","type":"color","group":"Light"},
423 {"key":"groundColor.b","type":"color","group":"Light"},
424 {"key":"groundColor.a","type":"color","group":"Light"},
425 {"key":"enabled","type":"bool","group":"Light"}
427 } else if (name ==
"LightProbeVolume") {
429 {"key":"probes","type":"asset","group":"LightProbeVolume"},
430 {"key":"capture","type":"bool","group":"LightProbeVolume"},
431 {"key":"captureInterval","type":"float","group":"LightProbeVolume"},
432 {"key":"halfExtents.x","type":"float","group":"LightProbeVolume"},
433 {"key":"halfExtents.y","type":"float","group":"LightProbeVolume"},
434 {"key":"halfExtents.z","type":"float","group":"LightProbeVolume"},
435 {"key":"spacing","type":"float","group":"LightProbeVolume"},
436 {"key":"enabled","type":"bool","group":"LightProbeVolume"}
438 } else if (name ==
"MeshCollider3D") {
440 {"key":"mesh","type":"asset","group":"MeshCollider3D"},
441 {"key":"friction","type":"float","group":"MeshCollider3D"},
442 {"key":"restitution","type":"float","group":"MeshCollider3D"},
443 {"key":"layer","type":"int","group":"MeshCollider3D"},
444 {"key":"enabled","type":"bool","group":"MeshCollider3D"}
446 } else if (name ==
"MeshInstances") {
448 {"key":"lod1Mesh","type":"asset","group":"MeshInstances"},
449 {"key":"lodDistance","type":"float","group":"MeshInstances"},
450 {"key":"minDistance","type":"float","group":"MeshInstances"},
451 {"key":"drawDistance","type":"float","group":"MeshInstances"},
452 {"key":"shadowDistance","type":"float","group":"MeshInstances"}
454 } else if (name ==
"MeshLightmap") {
456 {"key":"lightmap","type":"asset","group":"MeshLightmap"},
457 {"key":"scaleOffset.x","type":"float","group":"MeshLightmap"},
458 {"key":"scaleOffset.y","type":"float","group":"MeshLightmap"},
459 {"key":"scaleOffset.z","type":"float","group":"MeshLightmap"},
460 {"key":"scaleOffset.w","type":"float","group":"MeshLightmap"}
462 } else if (name ==
"MeshMorph") {
465 } else if (name ==
"MeshRenderer") {
467 {"key":"texture","type":"asset","group":"MeshRenderer"},
468 {"key":"normalMap","type":"asset","group":"MeshRenderer"},
469 {"key":"color.r","type":"color","group":"MeshRenderer"},
470 {"key":"color.g","type":"color","group":"MeshRenderer"},
471 {"key":"color.b","type":"color","group":"MeshRenderer"},
472 {"key":"color.a","type":"color","group":"MeshRenderer"},
473 {"key":"layer","type":"int","group":"MeshRenderer"},
474 {"key":"opaque","type":"bool","group":"MeshRenderer"},
475 {"key":"cullBackfaces","type":"bool","group":"MeshRenderer"},
476 {"key":"lit","type":"bool","group":"MeshRenderer"},
477 {"key":"castShadows","type":"bool","group":"MeshRenderer"},
478 {"key":"parallax.x","type":"float","group":"MeshRenderer"},
479 {"key":"parallax.y","type":"float","group":"MeshRenderer"},
480 {"key":"material","type":"asset","group":"MeshRenderer"},
481 {"key":"enabled","type":"bool","group":"MeshRenderer"},
482 {"key":"mesh","type":"asset","group":"MeshRenderer"}
484 } else if (name ==
"MeshSkin") {
486 {"key":"joints","type":"entity","group":"MeshSkin"},
487 {"key":"skinCache","type":"int","group":"MeshSkin"}
489 } else if (name ==
"Occluder") {
491 {"key":"halfExtents.x","type":"float","group":"Occluder"},
492 {"key":"halfExtents.y","type":"float","group":"Occluder"},
493 {"key":"halfExtents.z","type":"float","group":"Occluder"},
494 {"key":"enabled","type":"bool","group":"Occluder"}
496 } else if (name ==
"Parent") {
498 {"key":"entity","type":"entity","group":"Parent"}
500 } else if (name ==
"ParticleCollider") {
502 {"key":"shape","type":"int","group":"ParticleCollider"},
503 {"key":"radius","type":"float","group":"ParticleCollider"},
504 {"key":"halfHeight","type":"float","group":"ParticleCollider"},
505 {"key":"halfExtents.x","type":"float","group":"ParticleCollider"},
506 {"key":"halfExtents.y","type":"float","group":"ParticleCollider"},
507 {"key":"halfExtents.z","type":"float","group":"ParticleCollider"},
508 {"key":"inverted","type":"bool","group":"ParticleCollider"},
509 {"key":"mask","type":"int","group":"ParticleCollider"},
510 {"key":"enabled","type":"bool","group":"ParticleCollider"}
512 } else if (name ==
"ParticleEmitter") {
514 {"key":"rate","type":"float","group":"ParticleEmitter"},
515 {"key":"burstCount","type":"int","group":"ParticleEmitter"},
516 {"key":"burstInterval","type":"float","group":"ParticleEmitter"},
517 {"key":"duration","type":"float","group":"ParticleEmitter"},
518 {"key":"simulationSpeed","type":"float","group":"ParticleEmitter"},
519 {"key":"startDelay","type":"float","group":"ParticleEmitter"},
520 {"key":"looping","type":"bool","group":"ParticleEmitter"},
521 {"key":"playOnStart","type":"bool","group":"ParticleEmitter"},
522 {"key":"maxParticles","type":"int","group":"ParticleEmitter"},
523 {"key":"gpuSimulation","type":"bool","group":"ParticleEmitter"},
524 {"key":"lifetimeMin","type":"float","group":"ParticleEmitter"},
525 {"key":"lifetimeMax","type":"float","group":"ParticleEmitter"},
526 {"key":"shape","type":"int","group":"ParticleEmitter"},
527 {"key":"shapeRadius","type":"float","group":"ParticleEmitter"},
528 {"key":"shapeSize.x","type":"float","group":"ParticleEmitter"},
529 {"key":"shapeSize.y","type":"float","group":"ParticleEmitter"},
530 {"key":"shapeSize.z","type":"float","group":"ParticleEmitter"},
531 {"key":"shapeAngle","type":"float","group":"ParticleEmitter"},
532 {"key":"speedMin","type":"float","group":"ParticleEmitter"},
533 {"key":"speedMax","type":"float","group":"ParticleEmitter"},
534 {"key":"angleSpreadMin","type":"float","group":"ParticleEmitter"},
535 {"key":"angleSpreadMax","type":"float","group":"ParticleEmitter"},
536 {"key":"startSizeMin","type":"float","group":"ParticleEmitter"},
537 {"key":"startSizeMax","type":"float","group":"ParticleEmitter"},
538 {"key":"endSizeMin","type":"float","group":"ParticleEmitter"},
539 {"key":"endSizeMax","type":"float","group":"ParticleEmitter"},
540 {"key":"sizeEasing","type":"int","group":"ParticleEmitter"},
541 {"key":"startColor.r","type":"color","group":"ParticleEmitter"},
542 {"key":"startColor.g","type":"color","group":"ParticleEmitter"},
543 {"key":"startColor.b","type":"color","group":"ParticleEmitter"},
544 {"key":"startColor.a","type":"color","group":"ParticleEmitter"},
545 {"key":"endColor.r","type":"color","group":"ParticleEmitter"},
546 {"key":"endColor.g","type":"color","group":"ParticleEmitter"},
547 {"key":"endColor.b","type":"color","group":"ParticleEmitter"},
548 {"key":"endColor.a","type":"color","group":"ParticleEmitter"},
549 {"key":"colorEasing","type":"int","group":"ParticleEmitter"},
550 {"key":"rotationMin","type":"float","group":"ParticleEmitter"},
551 {"key":"rotationMax","type":"float","group":"ParticleEmitter"},
552 {"key":"angularVelocityMin","type":"float","group":"ParticleEmitter"},
553 {"key":"angularVelocityMax","type":"float","group":"ParticleEmitter"},
554 {"key":"gravity.x","type":"float","group":"ParticleEmitter"},
555 {"key":"gravity.y","type":"float","group":"ParticleEmitter"},
556 {"key":"gravity.z","type":"float","group":"ParticleEmitter"},
557 {"key":"damping","type":"float","group":"ParticleEmitter"},
558 {"key":"addedVelocityMin.x","type":"float","group":"ParticleEmitter"},
559 {"key":"addedVelocityMin.y","type":"float","group":"ParticleEmitter"},
560 {"key":"addedVelocityMin.z","type":"float","group":"ParticleEmitter"},
561 {"key":"addedVelocityMax.x","type":"float","group":"ParticleEmitter"},
562 {"key":"addedVelocityMax.y","type":"float","group":"ParticleEmitter"},
563 {"key":"addedVelocityMax.z","type":"float","group":"ParticleEmitter"},
564 {"key":"speedLimit","type":"float","group":"ParticleEmitter"},
565 {"key":"limitDampen","type":"float","group":"ParticleEmitter"},
566 {"key":"noiseStrength","type":"float","group":"ParticleEmitter"},
567 {"key":"noiseFrequency","type":"float","group":"ParticleEmitter"},
568 {"key":"noiseScrollSpeed","type":"float","group":"ParticleEmitter"},
569 {"key":"noiseOctaves","type":"int","group":"ParticleEmitter"},
570 {"key":"texture","type":"asset","group":"ParticleEmitter"},
571 {"key":"spriteColumns","type":"int","group":"ParticleEmitter"},
572 {"key":"spriteRows","type":"int","group":"ParticleEmitter"},
573 {"key":"spriteFPS","type":"float","group":"ParticleEmitter"},
574 {"key":"spriteLoop","type":"bool","group":"ParticleEmitter"},
575 {"key":"blendMode","type":"int","group":"ParticleEmitter"},
576 {"key":"layer","type":"int","group":"ParticleEmitter"},
577 {"key":"material","type":"asset","group":"ParticleEmitter"},
578 {"key":"simulationSpace","type":"int","group":"ParticleEmitter"},
579 {"key":"renderMode","type":"int","group":"ParticleEmitter"},
580 {"key":"velocityScale","type":"float","group":"ParticleEmitter"},
581 {"key":"lengthScale","type":"float","group":"ParticleEmitter"},
582 {"key":"intensity","type":"float","group":"ParticleEmitter"},
583 {"key":"enabled","type":"bool","group":"ParticleEmitter"},
584 {"key":"subEmitterTrigger","type":"int","group":"ParticleEmitter"},
585 {"key":"subEmitterChance","type":"float","group":"ParticleEmitter"},
586 {"key":"subEmitterInheritVelocity","type":"float","group":"ParticleEmitter"},
587 {"key":"subEmitter","type":"entity","group":"ParticleEmitter"},
588 {"key":"trailEnabled","type":"bool","group":"ParticleEmitter"},
589 {"key":"trailWidth","type":"float","group":"ParticleEmitter"},
590 {"key":"trailPoints","type":"int","group":"ParticleEmitter"},
591 {"key":"trailMinDistance","type":"float","group":"ParticleEmitter"},
592 {"key":"collisionEnabled","type":"bool","group":"ParticleEmitter"},
593 {"key":"collisionFloor","type":"float","group":"ParticleEmitter"},
594 {"key":"collisionMode","type":"int","group":"ParticleEmitter"},
595 {"key":"collisionMask","type":"int","group":"ParticleEmitter"},
596 {"key":"collisionQueryBudget","type":"int","group":"ParticleEmitter"},
597 {"key":"collisionMaxDistance","type":"float","group":"ParticleEmitter"},
598 {"key":"collisionFallback","type":"int","group":"ParticleEmitter"},
599 {"key":"collisionEvents","type":"bool","group":"ParticleEmitter"},
600 {"key":"collisionEventBudget","type":"int","group":"ParticleEmitter"},
601 {"key":"collisionThickness","type":"float","group":"ParticleEmitter"},
602 {"key":"collisionBounce","type":"float","group":"ParticleEmitter"},
603 {"key":"collisionFriction","type":"float","group":"ParticleEmitter"},
604 {"key":"collisionLifetimeLoss","type":"float","group":"ParticleEmitter"}
606 } else if (name ==
"ParticleForceField") {
608 {"key":"type","type":"int","group":"ParticleForceField"},
609 {"key":"strength","type":"float","group":"ParticleForceField"},
610 {"key":"radius","type":"float","group":"ParticleForceField"},
611 {"key":"direction.x","type":"float","group":"ParticleForceField"},
612 {"key":"direction.y","type":"float","group":"ParticleForceField"},
613 {"key":"direction.z","type":"float","group":"ParticleForceField"},
614 {"key":"falloff","type":"bool","group":"ParticleForceField"},
615 {"key":"enabled","type":"bool","group":"ParticleForceField"}
617 } else if (name ==
"PlanarReflection") {
619 {"key":"axis","type":"enum","group":"PlanarReflection","values":["X","Y","Z"]},
620 {"key":"clipOffset","type":"float","group":"PlanarReflection"},
621 {"key":"cullingMask","type":"int","group":"PlanarReflection"},
622 {"key":"quality","type":"enum","group":"PlanarReflection","values":["Project","Custom"]},
623 {"key":"resolutionScale","type":"float","group":"PlanarReflection"},
624 {"key":"maxSize","type":"int","group":"PlanarReflection"},
625 {"key":"update","type":"enum","group":"PlanarReflection","values":["EveryFrame","FixedRate","OnDemand"]},
626 {"key":"updatesPerSecond","type":"float","group":"PlanarReflection"},
627 {"key":"revision","type":"int","group":"PlanarReflection"},
628 {"key":"enabled","type":"bool","group":"PlanarReflection"}
630 } else if (name ==
"ReflectionProbe") {
632 {"key":"reflection","type":"asset","group":"ReflectionProbe"},
633 {"key":"halfExtents.x","type":"float","group":"ReflectionProbe"},
634 {"key":"halfExtents.y","type":"float","group":"ReflectionProbe"},
635 {"key":"halfExtents.z","type":"float","group":"ReflectionProbe"},
636 {"key":"slot","type":"int","group":"ReflectionProbe"},
637 {"key":"enabled","type":"bool","group":"ReflectionProbe"}
639 } else if (name ==
"RigidBody2D") {
641 {"key":"bodyType","type":"enum","group":"RigidBody2D","values":["Static","Kinematic","Dynamic"]},
642 {"key":"gravityScale","type":"float","group":"RigidBody2D"},
643 {"key":"linearDamping","type":"float","group":"RigidBody2D"},
644 {"key":"angularDamping","type":"float","group":"RigidBody2D"},
645 {"key":"fixedRotation","type":"bool","group":"RigidBody2D"},
646 {"key":"bullet","type":"bool","group":"RigidBody2D"},
647 {"key":"enabled","type":"bool","group":"RigidBody2D"}
649 } else if (name ==
"RigidBody3D") {
651 {"key":"bodyType","type":"enum","group":"RigidBody3D","values":["Static","Kinematic","Dynamic"]},
652 {"key":"gravityScale","type":"float","group":"RigidBody3D"},
653 {"key":"linearDamping","type":"float","group":"RigidBody3D"},
654 {"key":"angularDamping","type":"float","group":"RigidBody3D"},
655 {"key":"mass","type":"float","group":"RigidBody3D"},
656 {"key":"fixedRotation","type":"bool","group":"RigidBody3D"},
657 {"key":"layer","type":"int","group":"RigidBody3D"},
658 {"key":"continuousCollision","type":"bool","group":"RigidBody3D"},
659 {"key":"enabled","type":"bool","group":"RigidBody3D"}
661 } else if (name ==
"SegmentCollider2D") {
663 {"key":"point1.x","type":"float","group":"SegmentCollider2D"},
664 {"key":"point1.y","type":"float","group":"SegmentCollider2D"},
665 {"key":"point2.x","type":"float","group":"SegmentCollider2D"},
666 {"key":"point2.y","type":"float","group":"SegmentCollider2D"},
667 {"key":"density","type":"float","group":"SegmentCollider2D"},
668 {"key":"friction","type":"float","group":"SegmentCollider2D"},
669 {"key":"restitution","type":"float","group":"SegmentCollider2D"},
670 {"key":"isSensor","type":"bool","group":"SegmentCollider2D"},
671 {"key":"enabled","type":"bool","group":"SegmentCollider2D"},
672 {"key":"categoryBits","type":"int","group":"SegmentCollider2D"},
673 {"key":"maskBits","type":"int","group":"SegmentCollider2D"}
675 } else if (name ==
"ShadowCaster2D") {
677 {"key":"size.x","type":"float","group":"ShadowCaster2D"},
678 {"key":"size.y","type":"float","group":"ShadowCaster2D"},
679 {"key":"enabled","type":"bool","group":"ShadowCaster2D"}
681 } else if (name ==
"ShapeRenderer") {
683 {"key":"shapeType","type":"int","group":"ShapeRenderer"},
684 {"key":"color.r","type":"color","group":"ShapeRenderer"},
685 {"key":"color.g","type":"color","group":"ShapeRenderer"},
686 {"key":"color.b","type":"color","group":"ShapeRenderer"},
687 {"key":"color.a","type":"color","group":"ShapeRenderer"},
688 {"key":"size.x","type":"float","group":"ShapeRenderer"},
689 {"key":"size.y","type":"float","group":"ShapeRenderer"},
690 {"key":"cornerRadius","type":"float","group":"ShapeRenderer"},
691 {"key":"layer","type":"int","group":"ShapeRenderer"},
692 {"key":"parallax.x","type":"float","group":"ShapeRenderer"},
693 {"key":"parallax.y","type":"float","group":"ShapeRenderer"},
694 {"key":"enabled","type":"bool","group":"ShapeRenderer"}
696 } else if (name ==
"SortingGroup") {
698 {"key":"layer","type":"int","group":"SortingGroup"},
699 {"key":"order","type":"int","group":"SortingGroup"},
700 {"key":"enabled","type":"bool","group":"SortingGroup"}
702 } else if (name ==
"SphereCollider3D") {
704 {"key":"radius","type":"float","group":"SphereCollider3D"},
705 {"key":"center.x","type":"float","group":"SphereCollider3D"},
706 {"key":"center.y","type":"float","group":"SphereCollider3D"},
707 {"key":"center.z","type":"float","group":"SphereCollider3D"},
708 {"key":"friction","type":"float","group":"SphereCollider3D"},
709 {"key":"restitution","type":"float","group":"SphereCollider3D"},
710 {"key":"isSensor","type":"bool","group":"SphereCollider3D"},
711 {"key":"enabled","type":"bool","group":"SphereCollider3D"}
713 } else if (name ==
"SpineAnimation") {
715 {"key":"skeletonPath","type":"asset","group":"SpineAnimation"},
716 {"key":"atlasPath","type":"asset","group":"SpineAnimation"},
717 {"key":"skin","type":"string","group":"SpineAnimation"},
718 {"key":"animation","type":"string","group":"SpineAnimation"},
719 {"key":"timeScale","type":"float","group":"SpineAnimation"},
720 {"key":"loop","type":"bool","group":"SpineAnimation"},
721 {"key":"playing","type":"bool","group":"SpineAnimation"},
722 {"key":"flipX","type":"bool","group":"SpineAnimation"},
723 {"key":"flipY","type":"bool","group":"SpineAnimation"},
724 {"key":"color.r","type":"color","group":"SpineAnimation"},
725 {"key":"color.g","type":"color","group":"SpineAnimation"},
726 {"key":"color.b","type":"color","group":"SpineAnimation"},
727 {"key":"color.a","type":"color","group":"SpineAnimation"},
728 {"key":"layer","type":"int","group":"SpineAnimation"},
729 {"key":"skeletonScale","type":"float","group":"SpineAnimation"},
730 {"key":"material","type":"asset","group":"SpineAnimation"},
731 {"key":"enabled","type":"bool","group":"SpineAnimation"}
733 } else if (name ==
"SpringBone") {
735 {"key":"enabled","type":"bool","group":"SpringBone"},
736 {"key":"stiffness","type":"float","group":"SpringBone"},
737 {"key":"drag","type":"float","group":"SpringBone"},
738 {"key":"gravity.x","type":"float","group":"SpringBone"},
739 {"key":"gravity.y","type":"float","group":"SpringBone"},
740 {"key":"gravity.z","type":"float","group":"SpringBone"},
741 {"key":"wind.x","type":"float","group":"SpringBone"},
742 {"key":"wind.y","type":"float","group":"SpringBone"},
743 {"key":"wind.z","type":"float","group":"SpringBone"},
744 {"key":"windGust","type":"float","group":"SpringBone"},
745 {"key":"windFrequency","type":"float","group":"SpringBone"},
746 {"key":"endLength","type":"float","group":"SpringBone"},
747 {"key":"radius","type":"float","group":"SpringBone"},
748 {"key":"weight","type":"float","group":"SpringBone"},
749 {"key":"colliders","type":"entity","group":"SpringBone"}
751 } else if (name ==
"SpringBoneCollider") {
753 {"key":"shape","type":"enum","group":"SpringBoneCollider","values":["Sphere","Capsule"]},
754 {"key":"radius","type":"float","group":"SpringBoneCollider"},
755 {"key":"height","type":"float","group":"SpringBoneCollider"},
756 {"key":"offset.x","type":"float","group":"SpringBoneCollider"},
757 {"key":"offset.y","type":"float","group":"SpringBoneCollider"},
758 {"key":"offset.z","type":"float","group":"SpringBoneCollider"}
760 } else if (name ==
"Sprite") {
762 {"key":"texture","type":"asset","group":"Sprite"},
763 {"key":"color.r","type":"color","group":"Sprite"},
764 {"key":"color.g","type":"color","group":"Sprite"},
765 {"key":"color.b","type":"color","group":"Sprite"},
766 {"key":"color.a","type":"color","group":"Sprite"},
767 {"key":"size.x","type":"float","group":"Sprite"},
768 {"key":"size.y","type":"float","group":"Sprite"},
769 {"key":"pivot.x","type":"float","group":"Sprite"},
770 {"key":"pivot.y","type":"float","group":"Sprite"},
771 {"key":"uvOffset.x","type":"float","group":"Sprite"},
772 {"key":"uvOffset.y","type":"float","group":"Sprite"},
773 {"key":"uvScale.x","type":"float","group":"Sprite"},
774 {"key":"uvScale.y","type":"float","group":"Sprite"},
775 {"key":"layer","type":"int","group":"Sprite"},
776 {"key":"order","type":"int","group":"Sprite"},
777 {"key":"maskInteraction","type":"int","group":"Sprite"},
778 {"key":"lit","type":"bool","group":"Sprite"},
779 {"key":"flipX","type":"bool","group":"Sprite"},
780 {"key":"flipY","type":"bool","group":"Sprite"},
781 {"key":"drawMode","type":"enum","group":"Sprite","values":["Auto","Simple","Tiled","NineSlice"]},
782 {"key":"tileSize.x","type":"float","group":"Sprite"},
783 {"key":"tileSize.y","type":"float","group":"Sprite"},
784 {"key":"tileSpacing.x","type":"float","group":"Sprite"},
785 {"key":"tileSpacing.y","type":"float","group":"Sprite"},
786 {"key":"parallax.x","type":"float","group":"Sprite"},
787 {"key":"parallax.y","type":"float","group":"Sprite"},
788 {"key":"material","type":"asset","group":"Sprite"},
789 {"key":"enabled","type":"bool","group":"Sprite"}
791 } else if (name ==
"SpriteMask") {
793 {"key":"alphaCutoff","type":"float","group":"SpriteMask"},
794 {"key":"limitRange","type":"bool","group":"SpriteMask"},
795 {"key":"rangeEndLayer","type":"int","group":"SpriteMask"},
796 {"key":"rangeEndOrder","type":"int","group":"SpriteMask"},
797 {"key":"enabled","type":"bool","group":"SpriteMask"}
799 } else if (name ==
"TilemapLayer") {
801 {"key":"cellSize.x","type":"float","group":"TilemapLayer"},
802 {"key":"cellSize.y","type":"float","group":"TilemapLayer"},
803 {"key":"orientation","type":"int","group":"TilemapLayer"},
804 {"key":"hexSideLength","type":"float","group":"TilemapLayer"},
805 {"key":"staggerAxis","type":"int","group":"TilemapLayer"},
806 {"key":"staggerIndex","type":"int","group":"TilemapLayer"},
807 {"key":"originOffset.x","type":"float","group":"TilemapLayer"},
808 {"key":"originOffset.y","type":"float","group":"TilemapLayer"},
809 {"key":"tileset","type":"asset","group":"TilemapLayer"},
810 {"key":"tilesetColumns","type":"int","group":"TilemapLayer"},
811 {"key":"renderLayer","type":"int","group":"TilemapLayer"},
812 {"key":"tintColor.r","type":"color","group":"TilemapLayer"},
813 {"key":"tintColor.g","type":"color","group":"TilemapLayer"},
814 {"key":"tintColor.b","type":"color","group":"TilemapLayer"},
815 {"key":"tintColor.a","type":"color","group":"TilemapLayer"},
816 {"key":"opacity","type":"float","group":"TilemapLayer"},
817 {"key":"parallaxFactor.x","type":"float","group":"TilemapLayer"},
818 {"key":"parallaxFactor.y","type":"float","group":"TilemapLayer"},
819 {"key":"visible","type":"bool","group":"TilemapLayer"},
820 {"key":"lit","type":"bool","group":"TilemapLayer"}
822 } else if (name ==
"TrailRenderer") {
824 {"key":"time","type":"float","group":"TrailRenderer"},
825 {"key":"minVertexDistance","type":"float","group":"TrailRenderer"},
826 {"key":"emitting","type":"bool","group":"TrailRenderer"},
827 {"key":"startWidth","type":"float","group":"TrailRenderer"},
828 {"key":"endWidth","type":"float","group":"TrailRenderer"},
829 {"key":"startColor.r","type":"color","group":"TrailRenderer"},
830 {"key":"startColor.g","type":"color","group":"TrailRenderer"},
831 {"key":"startColor.b","type":"color","group":"TrailRenderer"},
832 {"key":"startColor.a","type":"color","group":"TrailRenderer"},
833 {"key":"endColor.r","type":"color","group":"TrailRenderer"},
834 {"key":"endColor.g","type":"color","group":"TrailRenderer"},
835 {"key":"endColor.b","type":"color","group":"TrailRenderer"},
836 {"key":"endColor.a","type":"color","group":"TrailRenderer"},
837 {"key":"texture","type":"asset","group":"TrailRenderer"},
838 {"key":"blendMode","type":"int","group":"TrailRenderer"},
839 {"key":"layer","type":"int","group":"TrailRenderer"},
840 {"key":"material","type":"asset","group":"TrailRenderer"},
841 {"key":"enabled","type":"bool","group":"TrailRenderer"}
843 } else if (name ==
"Transform") {
845 {"key":"position.x","type":"float","group":"Transform"},
846 {"key":"position.y","type":"float","group":"Transform"},
847 {"key":"position.z","type":"float","group":"Transform"},
848 {"key":"rotation.x","type":"float","group":"Transform"},
849 {"key":"rotation.y","type":"float","group":"Transform"},
850 {"key":"rotation.z","type":"float","group":"Transform"},
851 {"key":"scale.x","type":"float","group":"Transform"},
852 {"key":"scale.y","type":"float","group":"Transform"},
853 {"key":"scale.z","type":"float","group":"Transform"}
855 } else if (name ==
"UIInteraction") {
857 {"key":"hovered","type":"bool","group":"UIInteraction"},
858 {"key":"pressed","type":"bool","group":"UIInteraction"},
859 {"key":"justPressed","type":"bool","group":"UIInteraction"},
860 {"key":"justReleased","type":"bool","group":"UIInteraction"}
862 } else if (name ==
"UIMask") {
864 {"key":"enabled","type":"bool","group":"UIMask"},
865 {"key":"mode","type":"enum","group":"UIMask","values":["Scissor","Stencil"]},
866 {"key":"alphaCutoff","type":"float","group":"UIMask"}
868 } else if (name ==
"UINode") {
870 {"key":"position","type":"enum","group":"UINode","values":["Relative","Absolute"]},
871 {"key":"display","type":"enum","group":"UINode","values":["Flex","None"]},
872 {"key":"opacity","type":"float","group":"UINode"},
873 {"key":"pointerEvents","type":"enum","group":"UINode","values":["Auto","None","Receive"]},
874 {"key":"width.value","type":"float","group":"UINode"},
875 {"key":"width.unit","type":"float","group":"UINode"},
876 {"key":"height.value","type":"float","group":"UINode"},
877 {"key":"height.unit","type":"float","group":"UINode"},
878 {"key":"minWidth.value","type":"float","group":"UINode"},
879 {"key":"minWidth.unit","type":"float","group":"UINode"},
880 {"key":"minHeight.value","type":"float","group":"UINode"},
881 {"key":"minHeight.unit","type":"float","group":"UINode"},
882 {"key":"maxWidth.value","type":"float","group":"UINode"},
883 {"key":"maxWidth.unit","type":"float","group":"UINode"},
884 {"key":"maxHeight.value","type":"float","group":"UINode"},
885 {"key":"maxHeight.unit","type":"float","group":"UINode"},
886 {"key":"flexGrow","type":"float","group":"UINode"},
887 {"key":"flexShrink","type":"float","group":"UINode"},
888 {"key":"flexBasis.value","type":"float","group":"UINode"},
889 {"key":"flexBasis.unit","type":"float","group":"UINode"},
890 {"key":"alignSelf","type":"enum","group":"UINode","values":["Auto","Start","Center","End","Stretch"]},
891 {"key":"marginLeft.value","type":"float","group":"UINode"},
892 {"key":"marginLeft.unit","type":"float","group":"UINode"},
893 {"key":"marginTop.value","type":"float","group":"UINode"},
894 {"key":"marginTop.unit","type":"float","group":"UINode"},
895 {"key":"marginRight.value","type":"float","group":"UINode"},
896 {"key":"marginRight.unit","type":"float","group":"UINode"},
897 {"key":"marginBottom.value","type":"float","group":"UINode"},
898 {"key":"marginBottom.unit","type":"float","group":"UINode"},
899 {"key":"insetLeft.value","type":"float","group":"UINode"},
900 {"key":"insetLeft.unit","type":"float","group":"UINode"},
901 {"key":"insetTop.value","type":"float","group":"UINode"},
902 {"key":"insetTop.unit","type":"float","group":"UINode"},
903 {"key":"insetRight.value","type":"float","group":"UINode"},
904 {"key":"insetRight.unit","type":"float","group":"UINode"},
905 {"key":"insetBottom.value","type":"float","group":"UINode"},
906 {"key":"insetBottom.unit","type":"float","group":"UINode"}
908 } else if (name ==
"UIScroll") {
910 {"key":"enabled","type":"bool","group":"UIScroll"},
911 {"key":"content","type":"entity","group":"UIScroll"},
912 {"key":"horizontal","type":"bool","group":"UIScroll"},
913 {"key":"vertical","type":"bool","group":"UIScroll"},
914 {"key":"movement","type":"enum","group":"UIScroll","values":["Clamped","Elastic"]},
915 {"key":"wheelSpeed","type":"float","group":"UIScroll"},
916 {"key":"dragScroll","type":"bool","group":"UIScroll"},
917 {"key":"decelerationRate","type":"float","group":"UIScroll"}
919 } else if (name ==
"UIVisual") {
921 {"key":"visualType","type":"enum","group":"UIVisual","values":["None","SolidColor","Image","NineSlice","Tiled","Filled"]},
922 {"key":"texture","type":"asset","group":"UIVisual"},
923 {"key":"color.r","type":"color","group":"UIVisual"},
924 {"key":"color.g","type":"color","group":"UIVisual"},
925 {"key":"color.b","type":"color","group":"UIVisual"},
926 {"key":"color.a","type":"color","group":"UIVisual"},
927 {"key":"fit","type":"enum","group":"UIVisual","values":["Fill","Contain","Cover"]},
928 {"key":"uvOffset.x","type":"float","group":"UIVisual"},
929 {"key":"uvOffset.y","type":"float","group":"UIVisual"},
930 {"key":"uvScale.x","type":"float","group":"UIVisual"},
931 {"key":"uvScale.y","type":"float","group":"UIVisual"},
932 {"key":"sliceBorder.x","type":"float","group":"UIVisual"},
933 {"key":"sliceBorder.y","type":"float","group":"UIVisual"},
934 {"key":"sliceBorder.z","type":"float","group":"UIVisual"},
935 {"key":"sliceBorder.w","type":"float","group":"UIVisual"},
936 {"key":"tileSize.x","type":"float","group":"UIVisual"},
937 {"key":"tileSize.y","type":"float","group":"UIVisual"},
938 {"key":"fillMethod","type":"enum","group":"UIVisual","values":["Horizontal","Vertical","Radial360","Radial90","Radial180"]},
939 {"key":"fillOrigin","type":"enum","group":"UIVisual","values":["Left","Right","Bottom","Top"]},
940 {"key":"fillAmount","type":"float","group":"UIVisual"},
941 {"key":"material","type":"asset","group":"UIVisual"},
942 {"key":"enabled","type":"bool","group":"UIVisual"}
944 } else if (name ==
"Velocity") {
946 {"key":"linear.x","type":"float","group":"Velocity"},
947 {"key":"linear.y","type":"float","group":"Velocity"},
948 {"key":"linear.z","type":"float","group":"Velocity"},
949 {"key":"angular.x","type":"float","group":"Velocity"},
950 {"key":"angular.y","type":"float","group":"Velocity"},
951 {"key":"angular.z","type":"float","group":"Velocity"}
959bool editor_addComponent(
Registry& reg,
u32 e,
const std::string& name) {
960 auto entity =
static_cast<Entity>(e);
961 if (!reg.
valid(entity))
return false;
962 if (name ==
"Billboard") {
965 }
else if (name ==
"BitmapText") {
968 }
else if (name ==
"BoxCollider2D") {
971 }
else if (name ==
"BoxCollider3D") {
974 }
else if (name ==
"Camera") {
977 }
else if (name ==
"Canvas") {
980 }
else if (name ==
"CapsuleCollider2D") {
983 }
else if (name ==
"CapsuleCollider3D") {
986 }
else if (name ==
"CharacterController3D") {
989 }
else if (name ==
"Children") {
991 }
else if (name ==
"CircleCollider2D") {
994 }
else if (name ==
"ContentRect") {
997 }
else if (name ==
"ConvexCollider3D") {
1000 }
else if (name ==
"Draggable") {
1003 }
else if (name ==
"DragonBonesAnimation") {
1006 }
else if (name ==
"FlexContainer") {
1009 }
else if (name ==
"GroupOpacity") {
1012 }
else if (name ==
"Impostor") {
1015 }
else if (name ==
"Interactable") {
1018 }
else if (name ==
"LODGroup") {
1021 }
else if (name ==
"Light") {
1024 }
else if (name ==
"LightProbeVolume") {
1027 }
else if (name ==
"MeshCollider3D") {
1030 }
else if (name ==
"MeshInstances") {
1033 }
else if (name ==
"MeshLightmap") {
1036 }
else if (name ==
"MeshMorph") {
1039 }
else if (name ==
"MeshRenderer") {
1042 }
else if (name ==
"MeshSkin") {
1045 }
else if (name ==
"Occluder") {
1048 }
else if (name ==
"Parent") {
1050 }
else if (name ==
"ParticleCollider") {
1053 }
else if (name ==
"ParticleEmitter") {
1056 }
else if (name ==
"ParticleForceField") {
1059 }
else if (name ==
"PlanarReflection") {
1062 }
else if (name ==
"ReflectionProbe") {
1065 }
else if (name ==
"RigidBody2D") {
1068 }
else if (name ==
"RigidBody3D") {
1071 }
else if (name ==
"SegmentCollider2D") {
1074 }
else if (name ==
"ShadowCaster2D") {
1077 }
else if (name ==
"ShapeRenderer") {
1080 }
else if (name ==
"SortingGroup") {
1083 }
else if (name ==
"SphereCollider3D") {
1086 }
else if (name ==
"SpineAnimation") {
1089 }
else if (name ==
"SpringBone") {
1092 }
else if (name ==
"SpringBoneCollider") {
1095 }
else if (name ==
"Sprite") {
1098 }
else if (name ==
"SpriteMask") {
1101 }
else if (name ==
"TilemapLayer") {
1104 }
else if (name ==
"TrailRenderer") {
1107 }
else if (name ==
"Transform") {
1110 }
else if (name ==
"UIInteraction") {
1113 }
else if (name ==
"UIMask") {
1116 }
else if (name ==
"UINode") {
1119 }
else if (name ==
"UIScroll") {
1122 }
else if (name ==
"UIVisual") {
1125 }
else if (name ==
"Velocity") {
1132bool editor_removeComponent(
Registry& reg,
u32 e,
const std::string& name) {
1133 auto entity =
static_cast<Entity>(e);
1134 if (!reg.
valid(entity))
return false;
1135 if (name ==
"Billboard") {
1137 }
else if (name ==
"BitmapText") {
1139 }
else if (name ==
"BoxCollider2D") {
1141 }
else if (name ==
"BoxCollider3D") {
1143 }
else if (name ==
"Camera") {
1145 }
else if (name ==
"Canvas") {
1147 }
else if (name ==
"CapsuleCollider2D") {
1149 }
else if (name ==
"CapsuleCollider3D") {
1151 }
else if (name ==
"CharacterController3D") {
1153 }
else if (name ==
"Children") {
1159 }
else if (name ==
"CircleCollider2D") {
1161 }
else if (name ==
"ContentRect") {
1163 }
else if (name ==
"ConvexCollider3D") {
1165 }
else if (name ==
"Draggable") {
1167 }
else if (name ==
"DragonBonesAnimation") {
1169 }
else if (name ==
"FlexContainer") {
1171 }
else if (name ==
"GroupOpacity") {
1173 }
else if (name ==
"Impostor") {
1175 }
else if (name ==
"Interactable") {
1177 }
else if (name ==
"LODGroup") {
1179 }
else if (name ==
"Light") {
1181 }
else if (name ==
"LightProbeVolume") {
1183 }
else if (name ==
"MeshCollider3D") {
1185 }
else if (name ==
"MeshInstances") {
1187 }
else if (name ==
"MeshLightmap") {
1189 }
else if (name ==
"MeshMorph") {
1191 }
else if (name ==
"MeshRenderer") {
1193 }
else if (name ==
"MeshSkin") {
1195 }
else if (name ==
"Occluder") {
1197 }
else if (name ==
"Parent") {
1199 }
else if (name ==
"ParticleCollider") {
1201 }
else if (name ==
"ParticleEmitter") {
1203 }
else if (name ==
"ParticleForceField") {
1205 }
else if (name ==
"PlanarReflection") {
1207 }
else if (name ==
"ReflectionProbe") {
1209 }
else if (name ==
"RigidBody2D") {
1211 }
else if (name ==
"RigidBody3D") {
1213 }
else if (name ==
"SegmentCollider2D") {
1215 }
else if (name ==
"ShadowCaster2D") {
1217 }
else if (name ==
"ShapeRenderer") {
1219 }
else if (name ==
"SortingGroup") {
1221 }
else if (name ==
"SphereCollider3D") {
1223 }
else if (name ==
"SpineAnimation") {
1225 }
else if (name ==
"SpringBone") {
1227 }
else if (name ==
"SpringBoneCollider") {
1229 }
else if (name ==
"Sprite") {
1231 }
else if (name ==
"SpriteMask") {
1233 }
else if (name ==
"TilemapLayer") {
1235 }
else if (name ==
"TrailRenderer") {
1237 }
else if (name ==
"Transform") {
1239 }
else if (name ==
"UIInteraction") {
1241 }
else if (name ==
"UIMask") {
1243 }
else if (name ==
"UINode") {
1245 }
else if (name ==
"UIScroll") {
1247 }
else if (name ==
"UIVisual") {
1249 }
else if (name ==
"Velocity") {
1255bool editor_hasComponent(
Registry& reg,
u32 e,
const std::string& name) {
1256 auto entity =
static_cast<Entity>(e);
1257 if (!reg.
valid(entity))
return false;
1319std::vector<std::string> editor_getComponents(
Registry& reg,
u32 e) {
1320 auto entity =
static_cast<Entity>(e);
1321 std::vector<std::string> result;
1322 if (!reg.
valid(entity))
return result;
1384bool editor_setFloat(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field,
f32 value) {
1385 auto entity =
static_cast<Entity>(e);
1386 if (!reg.
valid(entity))
return false;
1387 if (comp ==
"BitmapText") {
1390 if (field ==
"color.r") { c.color.r = value; }
1391 else if (field ==
"color.g") { c.color.g = value; }
1392 else if (field ==
"color.b") { c.color.b = value; }
1393 else if (field ==
"color.a") { c.color.a = value; }
1394 else if (field ==
"fontSize") { c.fontSize = value; }
1395 else if (field ==
"spacing") { c.spacing = value; }
1396 else if (field ==
"parallax.x") { c.parallax.x = value; }
1397 else if (field ==
"parallax.y") { c.parallax.y = value; }
1398 else {
return false; }
1400 }
else if (comp ==
"BoxCollider2D") {
1403 if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1404 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1405 else if (field ==
"offset.x") { c.offset.x = value; }
1406 else if (field ==
"offset.y") { c.offset.y = value; }
1407 else if (field ==
"density") { c.density = value; }
1408 else if (field ==
"friction") { c.friction = value; }
1409 else if (field ==
"restitution") { c.restitution = value; }
1410 else {
return false; }
1412 }
else if (comp ==
"BoxCollider3D") {
1415 if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1416 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1417 else if (field ==
"halfExtents.z") { c.halfExtents.z = value; }
1418 else if (field ==
"center.x") { c.center.x = value; }
1419 else if (field ==
"center.y") { c.center.y = value; }
1420 else if (field ==
"center.z") { c.center.z = value; }
1421 else if (field ==
"friction") { c.friction = value; }
1422 else if (field ==
"restitution") { c.restitution = value; }
1423 else {
return false; }
1425 }
else if (comp ==
"Camera") {
1428 if (field ==
"fov") { c.fov = value; }
1429 else if (field ==
"orthoSize") { c.orthoSize = value; }
1430 else if (field ==
"nearPlane") { c.nearPlane = value; }
1431 else if (field ==
"farPlane") { c.farPlane = value; }
1432 else if (field ==
"aspectRatio") { c.aspectRatio = value; }
1433 else if (field ==
"viewport.x") { c.viewport.x = value; }
1434 else if (field ==
"viewport.y") { c.viewport.y = value; }
1435 else if (field ==
"viewport.z") { c.viewport.z = value; }
1436 else if (field ==
"viewport.w") { c.viewport.w = value; }
1437 else {
return false; }
1439 }
else if (comp ==
"Canvas") {
1442 if (field ==
"pixelsPerUnit") { c.pixelsPerUnit = value; }
1443 else if (field ==
"matchWidthOrHeight") { c.matchWidthOrHeight = value; }
1444 else if (field ==
"backgroundColor.r") { c.backgroundColor.r = value; }
1445 else if (field ==
"backgroundColor.g") { c.backgroundColor.g = value; }
1446 else if (field ==
"backgroundColor.b") { c.backgroundColor.b = value; }
1447 else if (field ==
"backgroundColor.a") { c.backgroundColor.a = value; }
1448 else {
return false; }
1450 }
else if (comp ==
"CapsuleCollider2D") {
1453 if (field ==
"radius") { c.radius = value; }
1454 else if (field ==
"halfHeight") { c.halfHeight = value; }
1455 else if (field ==
"offset.x") { c.offset.x = value; }
1456 else if (field ==
"offset.y") { c.offset.y = value; }
1457 else if (field ==
"density") { c.density = value; }
1458 else if (field ==
"friction") { c.friction = value; }
1459 else if (field ==
"restitution") { c.restitution = value; }
1460 else {
return false; }
1462 }
else if (comp ==
"CapsuleCollider3D") {
1465 if (field ==
"radius") { c.radius = value; }
1466 else if (field ==
"halfHeight") { c.halfHeight = value; }
1467 else if (field ==
"center.x") { c.center.x = value; }
1468 else if (field ==
"center.y") { c.center.y = value; }
1469 else if (field ==
"center.z") { c.center.z = value; }
1470 else if (field ==
"friction") { c.friction = value; }
1471 else if (field ==
"restitution") { c.restitution = value; }
1472 else {
return false; }
1474 }
else if (comp ==
"CharacterController3D") {
1477 if (field ==
"velocity.x") { c.velocity.x = value; }
1478 else if (field ==
"velocity.y") { c.velocity.y = value; }
1479 else if (field ==
"velocity.z") { c.velocity.z = value; }
1480 else if (field ==
"radius") { c.radius = value; }
1481 else if (field ==
"halfHeight") { c.halfHeight = value; }
1482 else if (field ==
"maxSlope") { c.maxSlope = value; }
1483 else if (field ==
"stepHeight") { c.stepHeight = value; }
1484 else if (field ==
"snapDown") { c.snapDown = value; }
1485 else if (field ==
"mass") { c.mass = value; }
1486 else if (field ==
"pushForce") { c.pushForce = value; }
1487 else if (field ==
"floorNormal.x") { c.floorNormal.x = value; }
1488 else if (field ==
"floorNormal.y") { c.floorNormal.y = value; }
1489 else if (field ==
"floorNormal.z") { c.floorNormal.z = value; }
1490 else if (field ==
"realVelocity.x") { c.realVelocity.x = value; }
1491 else if (field ==
"realVelocity.y") { c.realVelocity.y = value; }
1492 else if (field ==
"realVelocity.z") { c.realVelocity.z = value; }
1493 else {
return false; }
1495 }
else if (comp ==
"CircleCollider2D") {
1498 if (field ==
"radius") { c.radius = value; }
1499 else if (field ==
"offset.x") { c.offset.x = value; }
1500 else if (field ==
"offset.y") { c.offset.y = value; }
1501 else if (field ==
"density") { c.density = value; }
1502 else if (field ==
"friction") { c.friction = value; }
1503 else if (field ==
"restitution") { c.restitution = value; }
1504 else {
return false; }
1506 }
else if (comp ==
"ContentRect") {
1509 if (field ==
"size.x") { c.size.x = value; }
1510 else if (field ==
"size.y") { c.size.y = value; }
1511 else if (field ==
"pivot.x") { c.pivot.x = value; }
1512 else if (field ==
"pivot.y") { c.pivot.y = value; }
1513 else {
return false; }
1515 }
else if (comp ==
"ConvexCollider3D") {
1518 if (field ==
"friction") { c.friction = value; }
1519 else if (field ==
"restitution") { c.restitution = value; }
1520 else {
return false; }
1522 }
else if (comp ==
"Draggable") {
1525 if (field ==
"dragThreshold") { c.dragThreshold = value; }
1526 else if (field ==
"constraintMin.x") { c.constraintMin.x = value; }
1527 else if (field ==
"constraintMin.y") { c.constraintMin.y = value; }
1528 else if (field ==
"constraintMax.x") { c.constraintMax.x = value; }
1529 else if (field ==
"constraintMax.y") { c.constraintMax.y = value; }
1530 else {
return false; }
1532 }
else if (comp ==
"DragonBonesAnimation") {
1535 if (field ==
"timeScale") { c.timeScale = value; }
1536 else if (field ==
"fadeInTime") { c.fadeInTime = value; }
1537 else if (field ==
"color.r") { c.color.r = value; }
1538 else if (field ==
"color.g") { c.color.g = value; }
1539 else if (field ==
"color.b") { c.color.b = value; }
1540 else if (field ==
"color.a") { c.color.a = value; }
1541 else if (field ==
"skeletonScale") { c.skeletonScale = value; }
1542 else {
return false; }
1544 }
else if (comp ==
"FlexContainer") {
1547 if (field ==
"gap.x") { c.gap.x = value; }
1548 else if (field ==
"gap.y") { c.gap.y = value; }
1549 else if (field ==
"padding.left") { c.padding.left = value; }
1550 else if (field ==
"padding.top") { c.padding.top = value; }
1551 else if (field ==
"padding.right") { c.padding.right = value; }
1552 else if (field ==
"padding.bottom") { c.padding.bottom = value; }
1553 else {
return false; }
1555 }
else if (comp ==
"GroupOpacity") {
1558 if (field ==
"opacity") { c.opacity = value; }
1559 else {
return false; }
1561 }
else if (comp ==
"Impostor") {
1564 if (field ==
"screenSize") { c.screenSize = value; }
1565 else {
return false; }
1567 }
else if (comp ==
"LODGroup") {
1570 if (field ==
"lod1Size") { c.lod1Size = value; }
1571 else if (field ==
"lod2Size") { c.lod2Size = value; }
1572 else if (field ==
"lod3Size") { c.lod3Size = value; }
1573 else if (field ==
"cullSize") { c.cullSize = value; }
1574 else if (field ==
"hysteresis") { c.hysteresis = value; }
1575 else {
return false; }
1577 }
else if (comp ==
"Light") {
1580 if (field ==
"color.r") { c.color.r = value; }
1581 else if (field ==
"color.g") { c.color.g = value; }
1582 else if (field ==
"color.b") { c.color.b = value; }
1583 else if (field ==
"color.a") { c.color.a = value; }
1584 else if (field ==
"intensity") { c.intensity = value; }
1585 else if (field ==
"radius") { c.radius = value; }
1586 else if (field ==
"innerRadius") { c.innerRadius = value; }
1587 else if (field ==
"falloff") { c.falloff = value; }
1588 else if (field ==
"shadowStrength") { c.shadowStrength = value; }
1589 else if (field ==
"cookieSize.x") { c.cookieSize.x = value; }
1590 else if (field ==
"cookieSize.y") { c.cookieSize.y = value; }
1591 else if (field ==
"innerAngle") { c.innerAngle = value; }
1592 else if (field ==
"outerAngle") { c.outerAngle = value; }
1593 else if (field ==
"shadowSoftness") { c.shadowSoftness = value; }
1594 else if (field ==
"sourceAngle") { c.sourceAngle = value; }
1595 else if (field ==
"shadowDistance") { c.shadowDistance = value; }
1596 else if (field ==
"shadowExtent") { c.shadowExtent = value; }
1597 else if (field ==
"cascadeSplit") { c.cascadeSplit = value; }
1598 else if (field ==
"shadowBias") { c.shadowBias = value; }
1599 else if (field ==
"shadowSlopeFloor") { c.shadowSlopeFloor = value; }
1600 else if (field ==
"environmentRotation") { c.environmentRotation = value; }
1601 else if (field ==
"reflectionScale") { c.reflectionScale = value; }
1602 else if (field ==
"diffuseScale") { c.diffuseScale = value; }
1603 else if (field ==
"diffuseTint.r") { c.diffuseTint.r = value; }
1604 else if (field ==
"diffuseTint.g") { c.diffuseTint.g = value; }
1605 else if (field ==
"diffuseTint.b") { c.diffuseTint.b = value; }
1606 else if (field ==
"diffuseTint.a") { c.diffuseTint.a = value; }
1607 else if (field ==
"reflectionSaturation") { c.reflectionSaturation = value; }
1608 else if (field ==
"bakedTint.r") { c.bakedTint.r = value; }
1609 else if (field ==
"bakedTint.g") { c.bakedTint.g = value; }
1610 else if (field ==
"bakedTint.b") { c.bakedTint.b = value; }
1611 else if (field ==
"bakedTint.a") { c.bakedTint.a = value; }
1612 else if (field ==
"groundColor.r") { c.groundColor.r = value; }
1613 else if (field ==
"groundColor.g") { c.groundColor.g = value; }
1614 else if (field ==
"groundColor.b") { c.groundColor.b = value; }
1615 else if (field ==
"groundColor.a") { c.groundColor.a = value; }
1616 else {
return false; }
1618 }
else if (comp ==
"LightProbeVolume") {
1621 if (field ==
"captureInterval") { c.captureInterval = value; }
1622 else if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1623 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1624 else if (field ==
"halfExtents.z") { c.halfExtents.z = value; }
1625 else if (field ==
"spacing") { c.spacing = value; }
1626 else {
return false; }
1628 }
else if (comp ==
"MeshCollider3D") {
1631 if (field ==
"friction") { c.friction = value; }
1632 else if (field ==
"restitution") { c.restitution = value; }
1633 else {
return false; }
1635 }
else if (comp ==
"MeshInstances") {
1638 if (field ==
"lodDistance") { c.lodDistance = value; }
1639 else if (field ==
"minDistance") { c.minDistance = value; }
1640 else if (field ==
"drawDistance") { c.drawDistance = value; }
1641 else if (field ==
"shadowDistance") { c.shadowDistance = value; }
1642 else {
return false; }
1644 }
else if (comp ==
"MeshLightmap") {
1647 if (field ==
"scaleOffset.x") { c.scaleOffset.x = value; }
1648 else if (field ==
"scaleOffset.y") { c.scaleOffset.y = value; }
1649 else if (field ==
"scaleOffset.z") { c.scaleOffset.z = value; }
1650 else if (field ==
"scaleOffset.w") { c.scaleOffset.w = value; }
1651 else {
return false; }
1653 }
else if (comp ==
"MeshRenderer") {
1656 if (field ==
"color.r") { c.color.r = value; }
1657 else if (field ==
"color.g") { c.color.g = value; }
1658 else if (field ==
"color.b") { c.color.b = value; }
1659 else if (field ==
"color.a") { c.color.a = value; }
1660 else if (field ==
"parallax.x") { c.parallax.x = value; }
1661 else if (field ==
"parallax.y") { c.parallax.y = value; }
1662 else {
return false; }
1664 }
else if (comp ==
"Occluder") {
1667 if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1668 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1669 else if (field ==
"halfExtents.z") { c.halfExtents.z = value; }
1670 else {
return false; }
1672 }
else if (comp ==
"ParticleCollider") {
1675 if (field ==
"radius") { c.radius = value; }
1676 else if (field ==
"halfHeight") { c.halfHeight = value; }
1677 else if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1678 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1679 else if (field ==
"halfExtents.z") { c.halfExtents.z = value; }
1680 else {
return false; }
1682 }
else if (comp ==
"ParticleEmitter") {
1685 if (field ==
"rate") { c.rate = value; }
1686 else if (field ==
"burstInterval") { c.burstInterval = value; }
1687 else if (field ==
"duration") { c.duration = value; }
1688 else if (field ==
"simulationSpeed") { c.simulationSpeed = value; }
1689 else if (field ==
"startDelay") { c.startDelay = value; }
1690 else if (field ==
"lifetimeMin") { c.lifetimeMin = value; }
1691 else if (field ==
"lifetimeMax") { c.lifetimeMax = value; }
1692 else if (field ==
"shapeRadius") { c.shapeRadius = value; }
1693 else if (field ==
"shapeSize.x") { c.shapeSize.x = value; }
1694 else if (field ==
"shapeSize.y") { c.shapeSize.y = value; }
1695 else if (field ==
"shapeSize.z") { c.shapeSize.z = value; }
1696 else if (field ==
"shapeAngle") { c.shapeAngle = value; }
1697 else if (field ==
"speedMin") { c.speedMin = value; }
1698 else if (field ==
"speedMax") { c.speedMax = value; }
1699 else if (field ==
"angleSpreadMin") { c.angleSpreadMin = value; }
1700 else if (field ==
"angleSpreadMax") { c.angleSpreadMax = value; }
1701 else if (field ==
"startSizeMin") { c.startSizeMin = value; }
1702 else if (field ==
"startSizeMax") { c.startSizeMax = value; }
1703 else if (field ==
"endSizeMin") { c.endSizeMin = value; }
1704 else if (field ==
"endSizeMax") { c.endSizeMax = value; }
1705 else if (field ==
"startColor.r") { c.startColor.r = value; }
1706 else if (field ==
"startColor.g") { c.startColor.g = value; }
1707 else if (field ==
"startColor.b") { c.startColor.b = value; }
1708 else if (field ==
"startColor.a") { c.startColor.a = value; }
1709 else if (field ==
"endColor.r") { c.endColor.r = value; }
1710 else if (field ==
"endColor.g") { c.endColor.g = value; }
1711 else if (field ==
"endColor.b") { c.endColor.b = value; }
1712 else if (field ==
"endColor.a") { c.endColor.a = value; }
1713 else if (field ==
"rotationMin") { c.rotationMin = value; }
1714 else if (field ==
"rotationMax") { c.rotationMax = value; }
1715 else if (field ==
"angularVelocityMin") { c.angularVelocityMin = value; }
1716 else if (field ==
"angularVelocityMax") { c.angularVelocityMax = value; }
1717 else if (field ==
"gravity.x") { c.gravity.x = value; }
1718 else if (field ==
"gravity.y") { c.gravity.y = value; }
1719 else if (field ==
"gravity.z") { c.gravity.z = value; }
1720 else if (field ==
"damping") { c.damping = value; }
1721 else if (field ==
"addedVelocityMin.x") { c.addedVelocityMin.x = value; }
1722 else if (field ==
"addedVelocityMin.y") { c.addedVelocityMin.y = value; }
1723 else if (field ==
"addedVelocityMin.z") { c.addedVelocityMin.z = value; }
1724 else if (field ==
"addedVelocityMax.x") { c.addedVelocityMax.x = value; }
1725 else if (field ==
"addedVelocityMax.y") { c.addedVelocityMax.y = value; }
1726 else if (field ==
"addedVelocityMax.z") { c.addedVelocityMax.z = value; }
1727 else if (field ==
"speedLimit") { c.speedLimit = value; }
1728 else if (field ==
"limitDampen") { c.limitDampen = value; }
1729 else if (field ==
"noiseStrength") { c.noiseStrength = value; }
1730 else if (field ==
"noiseFrequency") { c.noiseFrequency = value; }
1731 else if (field ==
"noiseScrollSpeed") { c.noiseScrollSpeed = value; }
1732 else if (field ==
"spriteFPS") { c.spriteFPS = value; }
1733 else if (field ==
"velocityScale") { c.velocityScale = value; }
1734 else if (field ==
"lengthScale") { c.lengthScale = value; }
1735 else if (field ==
"intensity") { c.intensity = value; }
1736 else if (field ==
"subEmitterChance") { c.subEmitterChance = value; }
1737 else if (field ==
"subEmitterInheritVelocity") { c.subEmitterInheritVelocity = value; }
1738 else if (field ==
"trailWidth") { c.trailWidth = value; }
1739 else if (field ==
"trailMinDistance") { c.trailMinDistance = value; }
1740 else if (field ==
"collisionFloor") { c.collisionFloor = value; }
1741 else if (field ==
"collisionMaxDistance") { c.collisionMaxDistance = value; }
1742 else if (field ==
"collisionThickness") { c.collisionThickness = value; }
1743 else if (field ==
"collisionBounce") { c.collisionBounce = value; }
1744 else if (field ==
"collisionFriction") { c.collisionFriction = value; }
1745 else if (field ==
"collisionLifetimeLoss") { c.collisionLifetimeLoss = value; }
1746 else {
return false; }
1748 }
else if (comp ==
"ParticleForceField") {
1751 if (field ==
"strength") { c.strength = value; }
1752 else if (field ==
"radius") { c.radius = value; }
1753 else if (field ==
"direction.x") { c.direction.x = value; }
1754 else if (field ==
"direction.y") { c.direction.y = value; }
1755 else if (field ==
"direction.z") { c.direction.z = value; }
1756 else {
return false; }
1758 }
else if (comp ==
"PlanarReflection") {
1761 if (field ==
"clipOffset") { c.clipOffset = value; }
1762 else if (field ==
"resolutionScale") { c.resolutionScale = value; }
1763 else if (field ==
"updatesPerSecond") { c.updatesPerSecond = value; }
1764 else {
return false; }
1766 }
else if (comp ==
"ReflectionProbe") {
1769 if (field ==
"halfExtents.x") { c.halfExtents.x = value; }
1770 else if (field ==
"halfExtents.y") { c.halfExtents.y = value; }
1771 else if (field ==
"halfExtents.z") { c.halfExtents.z = value; }
1772 else {
return false; }
1774 }
else if (comp ==
"RigidBody2D") {
1777 if (field ==
"gravityScale") { c.gravityScale = value; }
1778 else if (field ==
"linearDamping") { c.linearDamping = value; }
1779 else if (field ==
"angularDamping") { c.angularDamping = value; }
1780 else {
return false; }
1782 }
else if (comp ==
"RigidBody3D") {
1785 if (field ==
"gravityScale") { c.gravityScale = value; }
1786 else if (field ==
"linearDamping") { c.linearDamping = value; }
1787 else if (field ==
"angularDamping") { c.angularDamping = value; }
1788 else if (field ==
"mass") { c.mass = value; }
1789 else {
return false; }
1791 }
else if (comp ==
"SegmentCollider2D") {
1794 if (field ==
"point1.x") { c.point1.x = value; }
1795 else if (field ==
"point1.y") { c.point1.y = value; }
1796 else if (field ==
"point2.x") { c.point2.x = value; }
1797 else if (field ==
"point2.y") { c.point2.y = value; }
1798 else if (field ==
"density") { c.density = value; }
1799 else if (field ==
"friction") { c.friction = value; }
1800 else if (field ==
"restitution") { c.restitution = value; }
1801 else {
return false; }
1803 }
else if (comp ==
"ShadowCaster2D") {
1806 if (field ==
"size.x") { c.size.x = value; }
1807 else if (field ==
"size.y") { c.size.y = value; }
1808 else {
return false; }
1810 }
else if (comp ==
"ShapeRenderer") {
1813 if (field ==
"color.r") { c.color.r = value; }
1814 else if (field ==
"color.g") { c.color.g = value; }
1815 else if (field ==
"color.b") { c.color.b = value; }
1816 else if (field ==
"color.a") { c.color.a = value; }
1817 else if (field ==
"size.x") { c.size.x = value; }
1818 else if (field ==
"size.y") { c.size.y = value; }
1819 else if (field ==
"cornerRadius") { c.cornerRadius = value; }
1820 else if (field ==
"parallax.x") { c.parallax.x = value; }
1821 else if (field ==
"parallax.y") { c.parallax.y = value; }
1822 else {
return false; }
1824 }
else if (comp ==
"SphereCollider3D") {
1827 if (field ==
"radius") { c.radius = value; }
1828 else if (field ==
"center.x") { c.center.x = value; }
1829 else if (field ==
"center.y") { c.center.y = value; }
1830 else if (field ==
"center.z") { c.center.z = value; }
1831 else if (field ==
"friction") { c.friction = value; }
1832 else if (field ==
"restitution") { c.restitution = value; }
1833 else {
return false; }
1835 }
else if (comp ==
"SpineAnimation") {
1838 if (field ==
"timeScale") { c.timeScale = value; }
1839 else if (field ==
"color.r") { c.color.r = value; }
1840 else if (field ==
"color.g") { c.color.g = value; }
1841 else if (field ==
"color.b") { c.color.b = value; }
1842 else if (field ==
"color.a") { c.color.a = value; }
1843 else if (field ==
"skeletonScale") { c.skeletonScale = value; }
1844 else {
return false; }
1846 }
else if (comp ==
"SpringBone") {
1849 if (field ==
"stiffness") { c.stiffness = value; }
1850 else if (field ==
"drag") { c.drag = value; }
1851 else if (field ==
"gravity.x") { c.gravity.x = value; }
1852 else if (field ==
"gravity.y") { c.gravity.y = value; }
1853 else if (field ==
"gravity.z") { c.gravity.z = value; }
1854 else if (field ==
"wind.x") { c.wind.x = value; }
1855 else if (field ==
"wind.y") { c.wind.y = value; }
1856 else if (field ==
"wind.z") { c.wind.z = value; }
1857 else if (field ==
"windGust") { c.windGust = value; }
1858 else if (field ==
"windFrequency") { c.windFrequency = value; }
1859 else if (field ==
"endLength") { c.endLength = value; }
1860 else if (field ==
"radius") { c.radius = value; }
1861 else if (field ==
"weight") { c.weight = value; }
1862 else {
return false; }
1864 }
else if (comp ==
"SpringBoneCollider") {
1867 if (field ==
"radius") { c.radius = value; }
1868 else if (field ==
"height") { c.height = value; }
1869 else if (field ==
"offset.x") { c.offset.x = value; }
1870 else if (field ==
"offset.y") { c.offset.y = value; }
1871 else if (field ==
"offset.z") { c.offset.z = value; }
1872 else {
return false; }
1874 }
else if (comp ==
"Sprite") {
1877 if (field ==
"color.r") { c.color.r = value; }
1878 else if (field ==
"color.g") { c.color.g = value; }
1879 else if (field ==
"color.b") { c.color.b = value; }
1880 else if (field ==
"color.a") { c.color.a = value; }
1881 else if (field ==
"size.x") { c.size.x = value; }
1882 else if (field ==
"size.y") { c.size.y = value; }
1883 else if (field ==
"pivot.x") { c.pivot.x = value; }
1884 else if (field ==
"pivot.y") { c.pivot.y = value; }
1885 else if (field ==
"uvOffset.x") { c.uvOffset.x = value; }
1886 else if (field ==
"uvOffset.y") { c.uvOffset.y = value; }
1887 else if (field ==
"uvScale.x") { c.uvScale.x = value; }
1888 else if (field ==
"uvScale.y") { c.uvScale.y = value; }
1889 else if (field ==
"tileSize.x") { c.tileSize.x = value; }
1890 else if (field ==
"tileSize.y") { c.tileSize.y = value; }
1891 else if (field ==
"tileSpacing.x") { c.tileSpacing.x = value; }
1892 else if (field ==
"tileSpacing.y") { c.tileSpacing.y = value; }
1893 else if (field ==
"parallax.x") { c.parallax.x = value; }
1894 else if (field ==
"parallax.y") { c.parallax.y = value; }
1895 else {
return false; }
1897 }
else if (comp ==
"SpriteMask") {
1900 if (field ==
"alphaCutoff") { c.alphaCutoff = value; }
1901 else {
return false; }
1903 }
else if (comp ==
"TilemapLayer") {
1906 if (field ==
"cellSize.x") { c.cellSize.x = value; }
1907 else if (field ==
"cellSize.y") { c.cellSize.y = value; }
1908 else if (field ==
"hexSideLength") { c.hexSideLength = value; }
1909 else if (field ==
"originOffset.x") { c.originOffset.x = value; }
1910 else if (field ==
"originOffset.y") { c.originOffset.y = value; }
1911 else if (field ==
"tintColor.r") { c.tintColor.r = value; }
1912 else if (field ==
"tintColor.g") { c.tintColor.g = value; }
1913 else if (field ==
"tintColor.b") { c.tintColor.b = value; }
1914 else if (field ==
"tintColor.a") { c.tintColor.a = value; }
1915 else if (field ==
"opacity") { c.opacity = value; }
1916 else if (field ==
"parallaxFactor.x") { c.parallaxFactor.x = value; }
1917 else if (field ==
"parallaxFactor.y") { c.parallaxFactor.y = value; }
1918 else {
return false; }
1920 }
else if (comp ==
"TrailRenderer") {
1923 if (field ==
"time") { c.time = value; }
1924 else if (field ==
"minVertexDistance") { c.minVertexDistance = value; }
1925 else if (field ==
"startWidth") { c.startWidth = value; }
1926 else if (field ==
"endWidth") { c.endWidth = value; }
1927 else if (field ==
"startColor.r") { c.startColor.r = value; }
1928 else if (field ==
"startColor.g") { c.startColor.g = value; }
1929 else if (field ==
"startColor.b") { c.startColor.b = value; }
1930 else if (field ==
"startColor.a") { c.startColor.a = value; }
1931 else if (field ==
"endColor.r") { c.endColor.r = value; }
1932 else if (field ==
"endColor.g") { c.endColor.g = value; }
1933 else if (field ==
"endColor.b") { c.endColor.b = value; }
1934 else if (field ==
"endColor.a") { c.endColor.a = value; }
1935 else {
return false; }
1937 }
else if (comp ==
"Transform") {
1940 if (field ==
"position.x") { c.position.x = value; }
1941 else if (field ==
"position.y") { c.position.y = value; }
1942 else if (field ==
"position.z") { c.position.z = value; }
1943 else if (field ==
"scale.x") { c.scale.x = value; }
1944 else if (field ==
"scale.y") { c.scale.y = value; }
1945 else if (field ==
"scale.z") { c.scale.z = value; }
1946 else if (field ==
"rotation.x") {
1947 auto euler = quatToEulerDeg(c.rotation);
1949 c.rotation = eulerDegToQuat(euler);
1951 else if (field ==
"rotation.y") {
1952 auto euler = quatToEulerDeg(c.rotation);
1954 c.rotation = eulerDegToQuat(euler);
1956 else if (field ==
"rotation.z") {
1957 auto euler = quatToEulerDeg(c.rotation);
1959 c.rotation = eulerDegToQuat(euler);
1961 else {
return false; }
1964 }
else if (comp ==
"UIMask") {
1967 if (field ==
"alphaCutoff") { c.alphaCutoff = value; }
1968 else {
return false; }
1970 }
else if (comp ==
"UINode") {
1973 if (field ==
"opacity") { c.opacity = value; }
1974 else if (field ==
"width.value") { c.width.value = value; }
1975 else if (field ==
"width.unit") { c.width.unit = value; }
1976 else if (field ==
"height.value") { c.height.value = value; }
1977 else if (field ==
"height.unit") { c.height.unit = value; }
1978 else if (field ==
"minWidth.value") { c.minWidth.value = value; }
1979 else if (field ==
"minWidth.unit") { c.minWidth.unit = value; }
1980 else if (field ==
"minHeight.value") { c.minHeight.value = value; }
1981 else if (field ==
"minHeight.unit") { c.minHeight.unit = value; }
1982 else if (field ==
"maxWidth.value") { c.maxWidth.value = value; }
1983 else if (field ==
"maxWidth.unit") { c.maxWidth.unit = value; }
1984 else if (field ==
"maxHeight.value") { c.maxHeight.value = value; }
1985 else if (field ==
"maxHeight.unit") { c.maxHeight.unit = value; }
1986 else if (field ==
"flexGrow") { c.flexGrow = value; }
1987 else if (field ==
"flexShrink") { c.flexShrink = value; }
1988 else if (field ==
"flexBasis.value") { c.flexBasis.value = value; }
1989 else if (field ==
"flexBasis.unit") { c.flexBasis.unit = value; }
1990 else if (field ==
"marginLeft.value") { c.marginLeft.value = value; }
1991 else if (field ==
"marginLeft.unit") { c.marginLeft.unit = value; }
1992 else if (field ==
"marginTop.value") { c.marginTop.value = value; }
1993 else if (field ==
"marginTop.unit") { c.marginTop.unit = value; }
1994 else if (field ==
"marginRight.value") { c.marginRight.value = value; }
1995 else if (field ==
"marginRight.unit") { c.marginRight.unit = value; }
1996 else if (field ==
"marginBottom.value") { c.marginBottom.value = value; }
1997 else if (field ==
"marginBottom.unit") { c.marginBottom.unit = value; }
1998 else if (field ==
"insetLeft.value") { c.insetLeft.value = value; }
1999 else if (field ==
"insetLeft.unit") { c.insetLeft.unit = value; }
2000 else if (field ==
"insetTop.value") { c.insetTop.value = value; }
2001 else if (field ==
"insetTop.unit") { c.insetTop.unit = value; }
2002 else if (field ==
"insetRight.value") { c.insetRight.value = value; }
2003 else if (field ==
"insetRight.unit") { c.insetRight.unit = value; }
2004 else if (field ==
"insetBottom.value") { c.insetBottom.value = value; }
2005 else if (field ==
"insetBottom.unit") { c.insetBottom.unit = value; }
2006 else {
return false; }
2008 }
else if (comp ==
"UIScroll") {
2011 if (field ==
"wheelSpeed") { c.wheelSpeed = value; }
2012 else if (field ==
"decelerationRate") { c.decelerationRate = value; }
2013 else {
return false; }
2015 }
else if (comp ==
"UIVisual") {
2018 if (field ==
"color.r") { c.color.r = value; }
2019 else if (field ==
"color.g") { c.color.g = value; }
2020 else if (field ==
"color.b") { c.color.b = value; }
2021 else if (field ==
"color.a") { c.color.a = value; }
2022 else if (field ==
"uvOffset.x") { c.uvOffset.x = value; }
2023 else if (field ==
"uvOffset.y") { c.uvOffset.y = value; }
2024 else if (field ==
"uvScale.x") { c.uvScale.x = value; }
2025 else if (field ==
"uvScale.y") { c.uvScale.y = value; }
2026 else if (field ==
"sliceBorder.x") { c.sliceBorder.x = value; }
2027 else if (field ==
"sliceBorder.y") { c.sliceBorder.y = value; }
2028 else if (field ==
"sliceBorder.z") { c.sliceBorder.z = value; }
2029 else if (field ==
"sliceBorder.w") { c.sliceBorder.w = value; }
2030 else if (field ==
"tileSize.x") { c.tileSize.x = value; }
2031 else if (field ==
"tileSize.y") { c.tileSize.y = value; }
2032 else if (field ==
"fillAmount") { c.fillAmount = value; }
2033 else {
return false; }
2035 }
else if (comp ==
"Velocity") {
2038 if (field ==
"linear.x") { c.linear.x = value; }
2039 else if (field ==
"linear.y") { c.linear.y = value; }
2040 else if (field ==
"linear.z") { c.linear.z = value; }
2041 else if (field ==
"angular.x") { c.angular.x = value; }
2042 else if (field ==
"angular.y") { c.angular.y = value; }
2043 else if (field ==
"angular.z") { c.angular.z = value; }
2044 else {
return false; }
2052f32 editor_getFloat(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field) {
2053 auto entity =
static_cast<Entity>(e);
2054 if (!reg.
valid(entity))
return 0.0f;
2055 if (comp ==
"BitmapText") {
2058 if (field ==
"color.r") {
return c.color.r; }
2059 else if (field ==
"color.g") {
return c.color.g; }
2060 else if (field ==
"color.b") {
return c.color.b; }
2061 else if (field ==
"color.a") {
return c.color.a; }
2062 else if (field ==
"fontSize") {
return c.fontSize; }
2063 else if (field ==
"spacing") {
return c.spacing; }
2064 else if (field ==
"parallax.x") {
return c.parallax.x; }
2065 else if (field ==
"parallax.y") {
return c.parallax.y; }
2066 }
else if (comp ==
"BoxCollider2D") {
2069 if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2070 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2071 else if (field ==
"offset.x") {
return c.offset.x; }
2072 else if (field ==
"offset.y") {
return c.offset.y; }
2073 else if (field ==
"density") {
return c.density; }
2074 else if (field ==
"friction") {
return c.friction; }
2075 else if (field ==
"restitution") {
return c.restitution; }
2076 }
else if (comp ==
"BoxCollider3D") {
2079 if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2080 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2081 else if (field ==
"halfExtents.z") {
return c.halfExtents.z; }
2082 else if (field ==
"center.x") {
return c.center.x; }
2083 else if (field ==
"center.y") {
return c.center.y; }
2084 else if (field ==
"center.z") {
return c.center.z; }
2085 else if (field ==
"friction") {
return c.friction; }
2086 else if (field ==
"restitution") {
return c.restitution; }
2087 }
else if (comp ==
"Camera") {
2090 if (field ==
"fov") {
return c.fov; }
2091 else if (field ==
"orthoSize") {
return c.orthoSize; }
2092 else if (field ==
"nearPlane") {
return c.nearPlane; }
2093 else if (field ==
"farPlane") {
return c.farPlane; }
2094 else if (field ==
"aspectRatio") {
return c.aspectRatio; }
2095 else if (field ==
"viewport.x") {
return c.viewport.x; }
2096 else if (field ==
"viewport.y") {
return c.viewport.y; }
2097 else if (field ==
"viewport.z") {
return c.viewport.z; }
2098 else if (field ==
"viewport.w") {
return c.viewport.w; }
2099 }
else if (comp ==
"Canvas") {
2102 if (field ==
"pixelsPerUnit") {
return c.pixelsPerUnit; }
2103 else if (field ==
"matchWidthOrHeight") {
return c.matchWidthOrHeight; }
2104 else if (field ==
"backgroundColor.r") {
return c.backgroundColor.r; }
2105 else if (field ==
"backgroundColor.g") {
return c.backgroundColor.g; }
2106 else if (field ==
"backgroundColor.b") {
return c.backgroundColor.b; }
2107 else if (field ==
"backgroundColor.a") {
return c.backgroundColor.a; }
2108 }
else if (comp ==
"CapsuleCollider2D") {
2111 if (field ==
"radius") {
return c.radius; }
2112 else if (field ==
"halfHeight") {
return c.halfHeight; }
2113 else if (field ==
"offset.x") {
return c.offset.x; }
2114 else if (field ==
"offset.y") {
return c.offset.y; }
2115 else if (field ==
"density") {
return c.density; }
2116 else if (field ==
"friction") {
return c.friction; }
2117 else if (field ==
"restitution") {
return c.restitution; }
2118 }
else if (comp ==
"CapsuleCollider3D") {
2121 if (field ==
"radius") {
return c.radius; }
2122 else if (field ==
"halfHeight") {
return c.halfHeight; }
2123 else if (field ==
"center.x") {
return c.center.x; }
2124 else if (field ==
"center.y") {
return c.center.y; }
2125 else if (field ==
"center.z") {
return c.center.z; }
2126 else if (field ==
"friction") {
return c.friction; }
2127 else if (field ==
"restitution") {
return c.restitution; }
2128 }
else if (comp ==
"CharacterController3D") {
2131 if (field ==
"velocity.x") {
return c.velocity.x; }
2132 else if (field ==
"velocity.y") {
return c.velocity.y; }
2133 else if (field ==
"velocity.z") {
return c.velocity.z; }
2134 else if (field ==
"radius") {
return c.radius; }
2135 else if (field ==
"halfHeight") {
return c.halfHeight; }
2136 else if (field ==
"maxSlope") {
return c.maxSlope; }
2137 else if (field ==
"stepHeight") {
return c.stepHeight; }
2138 else if (field ==
"snapDown") {
return c.snapDown; }
2139 else if (field ==
"mass") {
return c.mass; }
2140 else if (field ==
"pushForce") {
return c.pushForce; }
2141 else if (field ==
"floorNormal.x") {
return c.floorNormal.x; }
2142 else if (field ==
"floorNormal.y") {
return c.floorNormal.y; }
2143 else if (field ==
"floorNormal.z") {
return c.floorNormal.z; }
2144 else if (field ==
"realVelocity.x") {
return c.realVelocity.x; }
2145 else if (field ==
"realVelocity.y") {
return c.realVelocity.y; }
2146 else if (field ==
"realVelocity.z") {
return c.realVelocity.z; }
2147 }
else if (comp ==
"CircleCollider2D") {
2150 if (field ==
"radius") {
return c.radius; }
2151 else if (field ==
"offset.x") {
return c.offset.x; }
2152 else if (field ==
"offset.y") {
return c.offset.y; }
2153 else if (field ==
"density") {
return c.density; }
2154 else if (field ==
"friction") {
return c.friction; }
2155 else if (field ==
"restitution") {
return c.restitution; }
2156 }
else if (comp ==
"ContentRect") {
2159 if (field ==
"size.x") {
return c.size.x; }
2160 else if (field ==
"size.y") {
return c.size.y; }
2161 else if (field ==
"pivot.x") {
return c.pivot.x; }
2162 else if (field ==
"pivot.y") {
return c.pivot.y; }
2163 }
else if (comp ==
"ConvexCollider3D") {
2166 if (field ==
"friction") {
return c.friction; }
2167 else if (field ==
"restitution") {
return c.restitution; }
2168 }
else if (comp ==
"Draggable") {
2171 if (field ==
"dragThreshold") {
return c.dragThreshold; }
2172 else if (field ==
"constraintMin.x") {
return c.constraintMin.x; }
2173 else if (field ==
"constraintMin.y") {
return c.constraintMin.y; }
2174 else if (field ==
"constraintMax.x") {
return c.constraintMax.x; }
2175 else if (field ==
"constraintMax.y") {
return c.constraintMax.y; }
2176 }
else if (comp ==
"DragonBonesAnimation") {
2179 if (field ==
"timeScale") {
return c.timeScale; }
2180 else if (field ==
"fadeInTime") {
return c.fadeInTime; }
2181 else if (field ==
"color.r") {
return c.color.r; }
2182 else if (field ==
"color.g") {
return c.color.g; }
2183 else if (field ==
"color.b") {
return c.color.b; }
2184 else if (field ==
"color.a") {
return c.color.a; }
2185 else if (field ==
"skeletonScale") {
return c.skeletonScale; }
2186 }
else if (comp ==
"FlexContainer") {
2189 if (field ==
"gap.x") {
return c.gap.x; }
2190 else if (field ==
"gap.y") {
return c.gap.y; }
2191 else if (field ==
"padding.left") {
return c.padding.left; }
2192 else if (field ==
"padding.top") {
return c.padding.top; }
2193 else if (field ==
"padding.right") {
return c.padding.right; }
2194 else if (field ==
"padding.bottom") {
return c.padding.bottom; }
2195 }
else if (comp ==
"GroupOpacity") {
2198 if (field ==
"opacity") {
return c.opacity; }
2199 }
else if (comp ==
"Impostor") {
2202 if (field ==
"screenSize") {
return c.screenSize; }
2203 }
else if (comp ==
"LODGroup") {
2206 if (field ==
"lod1Size") {
return c.lod1Size; }
2207 else if (field ==
"lod2Size") {
return c.lod2Size; }
2208 else if (field ==
"lod3Size") {
return c.lod3Size; }
2209 else if (field ==
"cullSize") {
return c.cullSize; }
2210 else if (field ==
"hysteresis") {
return c.hysteresis; }
2211 }
else if (comp ==
"Light") {
2214 if (field ==
"color.r") {
return c.color.r; }
2215 else if (field ==
"color.g") {
return c.color.g; }
2216 else if (field ==
"color.b") {
return c.color.b; }
2217 else if (field ==
"color.a") {
return c.color.a; }
2218 else if (field ==
"intensity") {
return c.intensity; }
2219 else if (field ==
"radius") {
return c.radius; }
2220 else if (field ==
"innerRadius") {
return c.innerRadius; }
2221 else if (field ==
"falloff") {
return c.falloff; }
2222 else if (field ==
"shadowStrength") {
return c.shadowStrength; }
2223 else if (field ==
"cookieSize.x") {
return c.cookieSize.x; }
2224 else if (field ==
"cookieSize.y") {
return c.cookieSize.y; }
2225 else if (field ==
"innerAngle") {
return c.innerAngle; }
2226 else if (field ==
"outerAngle") {
return c.outerAngle; }
2227 else if (field ==
"shadowSoftness") {
return c.shadowSoftness; }
2228 else if (field ==
"sourceAngle") {
return c.sourceAngle; }
2229 else if (field ==
"shadowDistance") {
return c.shadowDistance; }
2230 else if (field ==
"shadowExtent") {
return c.shadowExtent; }
2231 else if (field ==
"cascadeSplit") {
return c.cascadeSplit; }
2232 else if (field ==
"shadowBias") {
return c.shadowBias; }
2233 else if (field ==
"shadowSlopeFloor") {
return c.shadowSlopeFloor; }
2234 else if (field ==
"environmentRotation") {
return c.environmentRotation; }
2235 else if (field ==
"reflectionScale") {
return c.reflectionScale; }
2236 else if (field ==
"diffuseScale") {
return c.diffuseScale; }
2237 else if (field ==
"diffuseTint.r") {
return c.diffuseTint.r; }
2238 else if (field ==
"diffuseTint.g") {
return c.diffuseTint.g; }
2239 else if (field ==
"diffuseTint.b") {
return c.diffuseTint.b; }
2240 else if (field ==
"diffuseTint.a") {
return c.diffuseTint.a; }
2241 else if (field ==
"reflectionSaturation") {
return c.reflectionSaturation; }
2242 else if (field ==
"bakedTint.r") {
return c.bakedTint.r; }
2243 else if (field ==
"bakedTint.g") {
return c.bakedTint.g; }
2244 else if (field ==
"bakedTint.b") {
return c.bakedTint.b; }
2245 else if (field ==
"bakedTint.a") {
return c.bakedTint.a; }
2246 else if (field ==
"groundColor.r") {
return c.groundColor.r; }
2247 else if (field ==
"groundColor.g") {
return c.groundColor.g; }
2248 else if (field ==
"groundColor.b") {
return c.groundColor.b; }
2249 else if (field ==
"groundColor.a") {
return c.groundColor.a; }
2250 }
else if (comp ==
"LightProbeVolume") {
2253 if (field ==
"captureInterval") {
return c.captureInterval; }
2254 else if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2255 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2256 else if (field ==
"halfExtents.z") {
return c.halfExtents.z; }
2257 else if (field ==
"spacing") {
return c.spacing; }
2258 }
else if (comp ==
"MeshCollider3D") {
2261 if (field ==
"friction") {
return c.friction; }
2262 else if (field ==
"restitution") {
return c.restitution; }
2263 }
else if (comp ==
"MeshInstances") {
2266 if (field ==
"lodDistance") {
return c.lodDistance; }
2267 else if (field ==
"minDistance") {
return c.minDistance; }
2268 else if (field ==
"drawDistance") {
return c.drawDistance; }
2269 else if (field ==
"shadowDistance") {
return c.shadowDistance; }
2270 }
else if (comp ==
"MeshLightmap") {
2273 if (field ==
"scaleOffset.x") {
return c.scaleOffset.x; }
2274 else if (field ==
"scaleOffset.y") {
return c.scaleOffset.y; }
2275 else if (field ==
"scaleOffset.z") {
return c.scaleOffset.z; }
2276 else if (field ==
"scaleOffset.w") {
return c.scaleOffset.w; }
2277 }
else if (comp ==
"MeshRenderer") {
2280 if (field ==
"color.r") {
return c.color.r; }
2281 else if (field ==
"color.g") {
return c.color.g; }
2282 else if (field ==
"color.b") {
return c.color.b; }
2283 else if (field ==
"color.a") {
return c.color.a; }
2284 else if (field ==
"parallax.x") {
return c.parallax.x; }
2285 else if (field ==
"parallax.y") {
return c.parallax.y; }
2286 }
else if (comp ==
"Occluder") {
2289 if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2290 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2291 else if (field ==
"halfExtents.z") {
return c.halfExtents.z; }
2292 }
else if (comp ==
"ParticleCollider") {
2295 if (field ==
"radius") {
return c.radius; }
2296 else if (field ==
"halfHeight") {
return c.halfHeight; }
2297 else if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2298 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2299 else if (field ==
"halfExtents.z") {
return c.halfExtents.z; }
2300 }
else if (comp ==
"ParticleEmitter") {
2303 if (field ==
"rate") {
return c.rate; }
2304 else if (field ==
"burstInterval") {
return c.burstInterval; }
2305 else if (field ==
"duration") {
return c.duration; }
2306 else if (field ==
"simulationSpeed") {
return c.simulationSpeed; }
2307 else if (field ==
"startDelay") {
return c.startDelay; }
2308 else if (field ==
"lifetimeMin") {
return c.lifetimeMin; }
2309 else if (field ==
"lifetimeMax") {
return c.lifetimeMax; }
2310 else if (field ==
"shapeRadius") {
return c.shapeRadius; }
2311 else if (field ==
"shapeSize.x") {
return c.shapeSize.x; }
2312 else if (field ==
"shapeSize.y") {
return c.shapeSize.y; }
2313 else if (field ==
"shapeSize.z") {
return c.shapeSize.z; }
2314 else if (field ==
"shapeAngle") {
return c.shapeAngle; }
2315 else if (field ==
"speedMin") {
return c.speedMin; }
2316 else if (field ==
"speedMax") {
return c.speedMax; }
2317 else if (field ==
"angleSpreadMin") {
return c.angleSpreadMin; }
2318 else if (field ==
"angleSpreadMax") {
return c.angleSpreadMax; }
2319 else if (field ==
"startSizeMin") {
return c.startSizeMin; }
2320 else if (field ==
"startSizeMax") {
return c.startSizeMax; }
2321 else if (field ==
"endSizeMin") {
return c.endSizeMin; }
2322 else if (field ==
"endSizeMax") {
return c.endSizeMax; }
2323 else if (field ==
"startColor.r") {
return c.startColor.r; }
2324 else if (field ==
"startColor.g") {
return c.startColor.g; }
2325 else if (field ==
"startColor.b") {
return c.startColor.b; }
2326 else if (field ==
"startColor.a") {
return c.startColor.a; }
2327 else if (field ==
"endColor.r") {
return c.endColor.r; }
2328 else if (field ==
"endColor.g") {
return c.endColor.g; }
2329 else if (field ==
"endColor.b") {
return c.endColor.b; }
2330 else if (field ==
"endColor.a") {
return c.endColor.a; }
2331 else if (field ==
"rotationMin") {
return c.rotationMin; }
2332 else if (field ==
"rotationMax") {
return c.rotationMax; }
2333 else if (field ==
"angularVelocityMin") {
return c.angularVelocityMin; }
2334 else if (field ==
"angularVelocityMax") {
return c.angularVelocityMax; }
2335 else if (field ==
"gravity.x") {
return c.gravity.x; }
2336 else if (field ==
"gravity.y") {
return c.gravity.y; }
2337 else if (field ==
"gravity.z") {
return c.gravity.z; }
2338 else if (field ==
"damping") {
return c.damping; }
2339 else if (field ==
"addedVelocityMin.x") {
return c.addedVelocityMin.x; }
2340 else if (field ==
"addedVelocityMin.y") {
return c.addedVelocityMin.y; }
2341 else if (field ==
"addedVelocityMin.z") {
return c.addedVelocityMin.z; }
2342 else if (field ==
"addedVelocityMax.x") {
return c.addedVelocityMax.x; }
2343 else if (field ==
"addedVelocityMax.y") {
return c.addedVelocityMax.y; }
2344 else if (field ==
"addedVelocityMax.z") {
return c.addedVelocityMax.z; }
2345 else if (field ==
"speedLimit") {
return c.speedLimit; }
2346 else if (field ==
"limitDampen") {
return c.limitDampen; }
2347 else if (field ==
"noiseStrength") {
return c.noiseStrength; }
2348 else if (field ==
"noiseFrequency") {
return c.noiseFrequency; }
2349 else if (field ==
"noiseScrollSpeed") {
return c.noiseScrollSpeed; }
2350 else if (field ==
"spriteFPS") {
return c.spriteFPS; }
2351 else if (field ==
"velocityScale") {
return c.velocityScale; }
2352 else if (field ==
"lengthScale") {
return c.lengthScale; }
2353 else if (field ==
"intensity") {
return c.intensity; }
2354 else if (field ==
"subEmitterChance") {
return c.subEmitterChance; }
2355 else if (field ==
"subEmitterInheritVelocity") {
return c.subEmitterInheritVelocity; }
2356 else if (field ==
"trailWidth") {
return c.trailWidth; }
2357 else if (field ==
"trailMinDistance") {
return c.trailMinDistance; }
2358 else if (field ==
"collisionFloor") {
return c.collisionFloor; }
2359 else if (field ==
"collisionMaxDistance") {
return c.collisionMaxDistance; }
2360 else if (field ==
"collisionThickness") {
return c.collisionThickness; }
2361 else if (field ==
"collisionBounce") {
return c.collisionBounce; }
2362 else if (field ==
"collisionFriction") {
return c.collisionFriction; }
2363 else if (field ==
"collisionLifetimeLoss") {
return c.collisionLifetimeLoss; }
2364 }
else if (comp ==
"ParticleForceField") {
2367 if (field ==
"strength") {
return c.strength; }
2368 else if (field ==
"radius") {
return c.radius; }
2369 else if (field ==
"direction.x") {
return c.direction.x; }
2370 else if (field ==
"direction.y") {
return c.direction.y; }
2371 else if (field ==
"direction.z") {
return c.direction.z; }
2372 }
else if (comp ==
"PlanarReflection") {
2375 if (field ==
"clipOffset") {
return c.clipOffset; }
2376 else if (field ==
"resolutionScale") {
return c.resolutionScale; }
2377 else if (field ==
"updatesPerSecond") {
return c.updatesPerSecond; }
2378 }
else if (comp ==
"ReflectionProbe") {
2381 if (field ==
"halfExtents.x") {
return c.halfExtents.x; }
2382 else if (field ==
"halfExtents.y") {
return c.halfExtents.y; }
2383 else if (field ==
"halfExtents.z") {
return c.halfExtents.z; }
2384 }
else if (comp ==
"RigidBody2D") {
2387 if (field ==
"gravityScale") {
return c.gravityScale; }
2388 else if (field ==
"linearDamping") {
return c.linearDamping; }
2389 else if (field ==
"angularDamping") {
return c.angularDamping; }
2390 }
else if (comp ==
"RigidBody3D") {
2393 if (field ==
"gravityScale") {
return c.gravityScale; }
2394 else if (field ==
"linearDamping") {
return c.linearDamping; }
2395 else if (field ==
"angularDamping") {
return c.angularDamping; }
2396 else if (field ==
"mass") {
return c.mass; }
2397 }
else if (comp ==
"SegmentCollider2D") {
2400 if (field ==
"point1.x") {
return c.point1.x; }
2401 else if (field ==
"point1.y") {
return c.point1.y; }
2402 else if (field ==
"point2.x") {
return c.point2.x; }
2403 else if (field ==
"point2.y") {
return c.point2.y; }
2404 else if (field ==
"density") {
return c.density; }
2405 else if (field ==
"friction") {
return c.friction; }
2406 else if (field ==
"restitution") {
return c.restitution; }
2407 }
else if (comp ==
"ShadowCaster2D") {
2410 if (field ==
"size.x") {
return c.size.x; }
2411 else if (field ==
"size.y") {
return c.size.y; }
2412 }
else if (comp ==
"ShapeRenderer") {
2415 if (field ==
"color.r") {
return c.color.r; }
2416 else if (field ==
"color.g") {
return c.color.g; }
2417 else if (field ==
"color.b") {
return c.color.b; }
2418 else if (field ==
"color.a") {
return c.color.a; }
2419 else if (field ==
"size.x") {
return c.size.x; }
2420 else if (field ==
"size.y") {
return c.size.y; }
2421 else if (field ==
"cornerRadius") {
return c.cornerRadius; }
2422 else if (field ==
"parallax.x") {
return c.parallax.x; }
2423 else if (field ==
"parallax.y") {
return c.parallax.y; }
2424 }
else if (comp ==
"SphereCollider3D") {
2427 if (field ==
"radius") {
return c.radius; }
2428 else if (field ==
"center.x") {
return c.center.x; }
2429 else if (field ==
"center.y") {
return c.center.y; }
2430 else if (field ==
"center.z") {
return c.center.z; }
2431 else if (field ==
"friction") {
return c.friction; }
2432 else if (field ==
"restitution") {
return c.restitution; }
2433 }
else if (comp ==
"SpineAnimation") {
2436 if (field ==
"timeScale") {
return c.timeScale; }
2437 else if (field ==
"color.r") {
return c.color.r; }
2438 else if (field ==
"color.g") {
return c.color.g; }
2439 else if (field ==
"color.b") {
return c.color.b; }
2440 else if (field ==
"color.a") {
return c.color.a; }
2441 else if (field ==
"skeletonScale") {
return c.skeletonScale; }
2442 }
else if (comp ==
"SpringBone") {
2445 if (field ==
"stiffness") {
return c.stiffness; }
2446 else if (field ==
"drag") {
return c.drag; }
2447 else if (field ==
"gravity.x") {
return c.gravity.x; }
2448 else if (field ==
"gravity.y") {
return c.gravity.y; }
2449 else if (field ==
"gravity.z") {
return c.gravity.z; }
2450 else if (field ==
"wind.x") {
return c.wind.x; }
2451 else if (field ==
"wind.y") {
return c.wind.y; }
2452 else if (field ==
"wind.z") {
return c.wind.z; }
2453 else if (field ==
"windGust") {
return c.windGust; }
2454 else if (field ==
"windFrequency") {
return c.windFrequency; }
2455 else if (field ==
"endLength") {
return c.endLength; }
2456 else if (field ==
"radius") {
return c.radius; }
2457 else if (field ==
"weight") {
return c.weight; }
2458 }
else if (comp ==
"SpringBoneCollider") {
2461 if (field ==
"radius") {
return c.radius; }
2462 else if (field ==
"height") {
return c.height; }
2463 else if (field ==
"offset.x") {
return c.offset.x; }
2464 else if (field ==
"offset.y") {
return c.offset.y; }
2465 else if (field ==
"offset.z") {
return c.offset.z; }
2466 }
else if (comp ==
"Sprite") {
2469 if (field ==
"color.r") {
return c.color.r; }
2470 else if (field ==
"color.g") {
return c.color.g; }
2471 else if (field ==
"color.b") {
return c.color.b; }
2472 else if (field ==
"color.a") {
return c.color.a; }
2473 else if (field ==
"size.x") {
return c.size.x; }
2474 else if (field ==
"size.y") {
return c.size.y; }
2475 else if (field ==
"pivot.x") {
return c.pivot.x; }
2476 else if (field ==
"pivot.y") {
return c.pivot.y; }
2477 else if (field ==
"uvOffset.x") {
return c.uvOffset.x; }
2478 else if (field ==
"uvOffset.y") {
return c.uvOffset.y; }
2479 else if (field ==
"uvScale.x") {
return c.uvScale.x; }
2480 else if (field ==
"uvScale.y") {
return c.uvScale.y; }
2481 else if (field ==
"tileSize.x") {
return c.tileSize.x; }
2482 else if (field ==
"tileSize.y") {
return c.tileSize.y; }
2483 else if (field ==
"tileSpacing.x") {
return c.tileSpacing.x; }
2484 else if (field ==
"tileSpacing.y") {
return c.tileSpacing.y; }
2485 else if (field ==
"parallax.x") {
return c.parallax.x; }
2486 else if (field ==
"parallax.y") {
return c.parallax.y; }
2487 }
else if (comp ==
"SpriteMask") {
2490 if (field ==
"alphaCutoff") {
return c.alphaCutoff; }
2491 }
else if (comp ==
"TilemapLayer") {
2494 if (field ==
"cellSize.x") {
return c.cellSize.x; }
2495 else if (field ==
"cellSize.y") {
return c.cellSize.y; }
2496 else if (field ==
"hexSideLength") {
return c.hexSideLength; }
2497 else if (field ==
"originOffset.x") {
return c.originOffset.x; }
2498 else if (field ==
"originOffset.y") {
return c.originOffset.y; }
2499 else if (field ==
"tintColor.r") {
return c.tintColor.r; }
2500 else if (field ==
"tintColor.g") {
return c.tintColor.g; }
2501 else if (field ==
"tintColor.b") {
return c.tintColor.b; }
2502 else if (field ==
"tintColor.a") {
return c.tintColor.a; }
2503 else if (field ==
"opacity") {
return c.opacity; }
2504 else if (field ==
"parallaxFactor.x") {
return c.parallaxFactor.x; }
2505 else if (field ==
"parallaxFactor.y") {
return c.parallaxFactor.y; }
2506 }
else if (comp ==
"TrailRenderer") {
2509 if (field ==
"time") {
return c.time; }
2510 else if (field ==
"minVertexDistance") {
return c.minVertexDistance; }
2511 else if (field ==
"startWidth") {
return c.startWidth; }
2512 else if (field ==
"endWidth") {
return c.endWidth; }
2513 else if (field ==
"startColor.r") {
return c.startColor.r; }
2514 else if (field ==
"startColor.g") {
return c.startColor.g; }
2515 else if (field ==
"startColor.b") {
return c.startColor.b; }
2516 else if (field ==
"startColor.a") {
return c.startColor.a; }
2517 else if (field ==
"endColor.r") {
return c.endColor.r; }
2518 else if (field ==
"endColor.g") {
return c.endColor.g; }
2519 else if (field ==
"endColor.b") {
return c.endColor.b; }
2520 else if (field ==
"endColor.a") {
return c.endColor.a; }
2521 }
else if (comp ==
"Transform") {
2524 if (field ==
"position.x") {
return c.position.x; }
2525 else if (field ==
"position.y") {
return c.position.y; }
2526 else if (field ==
"position.z") {
return c.position.z; }
2527 else if (field ==
"scale.x") {
return c.scale.x; }
2528 else if (field ==
"scale.y") {
return c.scale.y; }
2529 else if (field ==
"scale.z") {
return c.scale.z; }
2530 else if (field ==
"rotation.x") {
return quatToEulerDeg(c.rotation).x; }
2531 else if (field ==
"rotation.y") {
return quatToEulerDeg(c.rotation).y; }
2532 else if (field ==
"rotation.z") {
return quatToEulerDeg(c.rotation).z; }
2533 }
else if (comp ==
"UIMask") {
2536 if (field ==
"alphaCutoff") {
return c.alphaCutoff; }
2537 }
else if (comp ==
"UINode") {
2540 if (field ==
"opacity") {
return c.opacity; }
2541 else if (field ==
"width.value") {
return c.width.value; }
2542 else if (field ==
"width.unit") {
return c.width.unit; }
2543 else if (field ==
"height.value") {
return c.height.value; }
2544 else if (field ==
"height.unit") {
return c.height.unit; }
2545 else if (field ==
"minWidth.value") {
return c.minWidth.value; }
2546 else if (field ==
"minWidth.unit") {
return c.minWidth.unit; }
2547 else if (field ==
"minHeight.value") {
return c.minHeight.value; }
2548 else if (field ==
"minHeight.unit") {
return c.minHeight.unit; }
2549 else if (field ==
"maxWidth.value") {
return c.maxWidth.value; }
2550 else if (field ==
"maxWidth.unit") {
return c.maxWidth.unit; }
2551 else if (field ==
"maxHeight.value") {
return c.maxHeight.value; }
2552 else if (field ==
"maxHeight.unit") {
return c.maxHeight.unit; }
2553 else if (field ==
"flexGrow") {
return c.flexGrow; }
2554 else if (field ==
"flexShrink") {
return c.flexShrink; }
2555 else if (field ==
"flexBasis.value") {
return c.flexBasis.value; }
2556 else if (field ==
"flexBasis.unit") {
return c.flexBasis.unit; }
2557 else if (field ==
"marginLeft.value") {
return c.marginLeft.value; }
2558 else if (field ==
"marginLeft.unit") {
return c.marginLeft.unit; }
2559 else if (field ==
"marginTop.value") {
return c.marginTop.value; }
2560 else if (field ==
"marginTop.unit") {
return c.marginTop.unit; }
2561 else if (field ==
"marginRight.value") {
return c.marginRight.value; }
2562 else if (field ==
"marginRight.unit") {
return c.marginRight.unit; }
2563 else if (field ==
"marginBottom.value") {
return c.marginBottom.value; }
2564 else if (field ==
"marginBottom.unit") {
return c.marginBottom.unit; }
2565 else if (field ==
"insetLeft.value") {
return c.insetLeft.value; }
2566 else if (field ==
"insetLeft.unit") {
return c.insetLeft.unit; }
2567 else if (field ==
"insetTop.value") {
return c.insetTop.value; }
2568 else if (field ==
"insetTop.unit") {
return c.insetTop.unit; }
2569 else if (field ==
"insetRight.value") {
return c.insetRight.value; }
2570 else if (field ==
"insetRight.unit") {
return c.insetRight.unit; }
2571 else if (field ==
"insetBottom.value") {
return c.insetBottom.value; }
2572 else if (field ==
"insetBottom.unit") {
return c.insetBottom.unit; }
2573 }
else if (comp ==
"UIScroll") {
2576 if (field ==
"wheelSpeed") {
return c.wheelSpeed; }
2577 else if (field ==
"decelerationRate") {
return c.decelerationRate; }
2578 }
else if (comp ==
"UIVisual") {
2581 if (field ==
"color.r") {
return c.color.r; }
2582 else if (field ==
"color.g") {
return c.color.g; }
2583 else if (field ==
"color.b") {
return c.color.b; }
2584 else if (field ==
"color.a") {
return c.color.a; }
2585 else if (field ==
"uvOffset.x") {
return c.uvOffset.x; }
2586 else if (field ==
"uvOffset.y") {
return c.uvOffset.y; }
2587 else if (field ==
"uvScale.x") {
return c.uvScale.x; }
2588 else if (field ==
"uvScale.y") {
return c.uvScale.y; }
2589 else if (field ==
"sliceBorder.x") {
return c.sliceBorder.x; }
2590 else if (field ==
"sliceBorder.y") {
return c.sliceBorder.y; }
2591 else if (field ==
"sliceBorder.z") {
return c.sliceBorder.z; }
2592 else if (field ==
"sliceBorder.w") {
return c.sliceBorder.w; }
2593 else if (field ==
"tileSize.x") {
return c.tileSize.x; }
2594 else if (field ==
"tileSize.y") {
return c.tileSize.y; }
2595 else if (field ==
"fillAmount") {
return c.fillAmount; }
2596 }
else if (comp ==
"Velocity") {
2599 if (field ==
"linear.x") {
return c.linear.x; }
2600 else if (field ==
"linear.y") {
return c.linear.y; }
2601 else if (field ==
"linear.z") {
return c.linear.z; }
2602 else if (field ==
"angular.x") {
return c.angular.x; }
2603 else if (field ==
"angular.y") {
return c.angular.y; }
2604 else if (field ==
"angular.z") {
return c.angular.z; }
2611bool editor_setInt(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field,
i32 value) {
2612 auto entity =
static_cast<Entity>(e);
2613 if (!reg.
valid(entity))
return false;
2614 if (comp ==
"Billboard") {
2617 if (field ==
"mode") { c.mode =
static_cast<i32>(value); }
2618 else {
return false; }
2620 }
else if (comp ==
"BitmapText") {
2623 if (field ==
"align") { c.align =
static_cast<TextAlign>(value); }
2624 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2626 else {
return false; }
2628 }
else if (comp ==
"BoxCollider2D") {
2631 if (field ==
"categoryBits") { c.categoryBits =
static_cast<u32>(value); }
2632 else if (field ==
"maskBits") { c.maskBits =
static_cast<u32>(value); }
2633 else {
return false; }
2635 }
else if (comp ==
"Camera") {
2638 if (field ==
"projectionType") { c.projectionType =
static_cast<ProjectionType>(value); }
2639 else if (field ==
"priority") { c.priority =
static_cast<i32>(value); }
2640 else if (field ==
"clearFlags") { c.clearFlags =
static_cast<ClearFlags>(value); }
2641 else if (field ==
"cullingMask") { c.cullingMask =
static_cast<u32>(value); }
2642 else if (field ==
"renderTarget") { c.renderTarget =
static_cast<u32>(value); }
2643 else {
return false; }
2645 }
else if (comp ==
"Canvas") {
2648 if (field ==
"scaleMode") { c.scaleMode =
static_cast<CanvasScaleMode>(value); }
2649 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2650 else {
return false; }
2652 }
else if (comp ==
"CapsuleCollider2D") {
2655 if (field ==
"categoryBits") { c.categoryBits =
static_cast<u32>(value); }
2656 else if (field ==
"maskBits") { c.maskBits =
static_cast<u32>(value); }
2657 else {
return false; }
2659 }
else if (comp ==
"CharacterController3D") {
2662 if (field ==
"layer") { c.layer =
static_cast<u32>(value); }
2663 else {
return false; }
2665 }
else if (comp ==
"CircleCollider2D") {
2668 if (field ==
"categoryBits") { c.categoryBits =
static_cast<u32>(value); }
2669 else if (field ==
"maskBits") { c.maskBits =
static_cast<u32>(value); }
2670 else {
return false; }
2672 }
else if (comp ==
"ConvexCollider3D") {
2676 else {
return false; }
2678 }
else if (comp ==
"DragonBonesAnimation") {
2681 if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2682 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2683 else {
return false; }
2685 }
else if (comp ==
"FlexContainer") {
2688 if (field ==
"direction") { c.direction =
static_cast<FlexDirection>(value); }
2689 else if (field ==
"wrap") { c.wrap =
static_cast<FlexWrap>(value); }
2690 else if (field ==
"justifyContent") { c.justifyContent =
static_cast<JustifyContent>(value); }
2691 else if (field ==
"alignItems") { c.alignItems =
static_cast<AlignItems>(value); }
2692 else if (field ==
"alignContent") { c.alignContent =
static_cast<AlignContent>(value); }
2693 else {
return false; }
2695 }
else if (comp ==
"Impostor") {
2698 if (field ==
"frames") { c.frames =
static_cast<i32>(value); }
2699 else if (field ==
"resolution") { c.resolution =
static_cast<i32>(value); }
2700 else {
return false; }
2702 }
else if (comp ==
"LODGroup") {
2708 else {
return false; }
2710 }
else if (comp ==
"Light") {
2713 if (field ==
"type") { c.type =
static_cast<i32>(value); }
2714 else if (field ==
"layerMin") { c.layerMin =
static_cast<i32>(value); }
2715 else if (field ==
"layerMax") { c.layerMax =
static_cast<i32>(value); }
2718 else {
return false; }
2720 }
else if (comp ==
"LightProbeVolume") {
2724 else {
return false; }
2726 }
else if (comp ==
"MeshCollider3D") {
2730 else if (field ==
"layer") { c.layer =
static_cast<u32>(value); }
2731 else {
return false; }
2733 }
else if (comp ==
"MeshInstances") {
2737 else {
return false; }
2739 }
else if (comp ==
"MeshLightmap") {
2743 else {
return false; }
2745 }
else if (comp ==
"MeshRenderer") {
2750 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2751 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2753 else {
return false; }
2755 }
else if (comp ==
"MeshSkin") {
2758 if (field ==
"skinCache") { c.skinCache =
static_cast<i32>(value); }
2759 else {
return false; }
2761 }
else if (comp ==
"Parent") {
2762 if (field !=
"entity")
return false;
2765 }
else if (comp ==
"ParticleCollider") {
2768 if (field ==
"shape") { c.shape =
static_cast<i32>(value); }
2769 else if (field ==
"mask") { c.mask =
static_cast<u32>(value); }
2770 else {
return false; }
2772 }
else if (comp ==
"ParticleEmitter") {
2775 if (field ==
"burstCount") { c.burstCount =
static_cast<i32>(value); }
2776 else if (field ==
"maxParticles") { c.maxParticles =
static_cast<i32>(value); }
2777 else if (field ==
"shape") { c.shape =
static_cast<i32>(value); }
2778 else if (field ==
"sizeEasing") { c.sizeEasing =
static_cast<i32>(value); }
2779 else if (field ==
"colorEasing") { c.colorEasing =
static_cast<i32>(value); }
2780 else if (field ==
"noiseOctaves") { c.noiseOctaves =
static_cast<i32>(value); }
2782 else if (field ==
"spriteColumns") { c.spriteColumns =
static_cast<i32>(value); }
2783 else if (field ==
"spriteRows") { c.spriteRows =
static_cast<i32>(value); }
2784 else if (field ==
"blendMode") { c.blendMode =
static_cast<i32>(value); }
2785 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2786 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2787 else if (field ==
"simulationSpace") { c.simulationSpace =
static_cast<i32>(value); }
2788 else if (field ==
"renderMode") { c.renderMode =
static_cast<i32>(value); }
2789 else if (field ==
"subEmitterTrigger") { c.subEmitterTrigger =
static_cast<i32>(value); }
2790 else if (field ==
"subEmitter") { c.subEmitter =
static_cast<u32>(value); }
2791 else if (field ==
"trailPoints") { c.trailPoints =
static_cast<i32>(value); }
2792 else if (field ==
"collisionMode") { c.collisionMode =
static_cast<i32>(value); }
2793 else if (field ==
"collisionMask") { c.collisionMask =
static_cast<u32>(value); }
2794 else if (field ==
"collisionQueryBudget") { c.collisionQueryBudget =
static_cast<i32>(value); }
2795 else if (field ==
"collisionFallback") { c.collisionFallback =
static_cast<i32>(value); }
2796 else if (field ==
"collisionEventBudget") { c.collisionEventBudget =
static_cast<i32>(value); }
2797 else {
return false; }
2799 }
else if (comp ==
"ParticleForceField") {
2802 if (field ==
"type") { c.type =
static_cast<i32>(value); }
2803 else {
return false; }
2805 }
else if (comp ==
"PlanarReflection") {
2808 if (field ==
"axis") { c.axis =
static_cast<ReflectionAxis>(value); }
2809 else if (field ==
"cullingMask") { c.cullingMask =
static_cast<u32>(value); }
2810 else if (field ==
"quality") { c.quality =
static_cast<ReflectionQuality>(value); }
2811 else if (field ==
"maxSize") { c.maxSize =
static_cast<u32>(value); }
2812 else if (field ==
"update") { c.update =
static_cast<ReflectionUpdate>(value); }
2813 else if (field ==
"revision") { c.revision =
static_cast<u32>(value); }
2814 else {
return false; }
2816 }
else if (comp ==
"ReflectionProbe") {
2820 else if (field ==
"slot") { c.slot =
static_cast<u32>(value); }
2821 else {
return false; }
2823 }
else if (comp ==
"RigidBody2D") {
2826 if (field ==
"bodyType") { c.bodyType =
static_cast<BodyType>(value); }
2827 else {
return false; }
2829 }
else if (comp ==
"RigidBody3D") {
2832 if (field ==
"bodyType") { c.bodyType =
static_cast<BodyType>(value); }
2833 else if (field ==
"layer") { c.layer =
static_cast<u32>(value); }
2834 else {
return false; }
2836 }
else if (comp ==
"SegmentCollider2D") {
2839 if (field ==
"categoryBits") { c.categoryBits =
static_cast<u32>(value); }
2840 else if (field ==
"maskBits") { c.maskBits =
static_cast<u32>(value); }
2841 else {
return false; }
2843 }
else if (comp ==
"ShapeRenderer") {
2846 if (field ==
"shapeType") { c.shapeType =
static_cast<u8>(value); }
2847 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2848 else {
return false; }
2850 }
else if (comp ==
"SortingGroup") {
2853 if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2854 else if (field ==
"order") { c.order =
static_cast<i32>(value); }
2855 else {
return false; }
2857 }
else if (comp ==
"SpineAnimation") {
2860 if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2861 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2862 else {
return false; }
2864 }
else if (comp ==
"SpringBoneCollider") {
2867 if (field ==
"shape") { c.shape =
static_cast<SpringBoneShape>(value); }
2868 else {
return false; }
2870 }
else if (comp ==
"Sprite") {
2874 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2875 else if (field ==
"order") { c.order =
static_cast<i32>(value); }
2876 else if (field ==
"maskInteraction") { c.maskInteraction =
static_cast<i32>(value); }
2877 else if (field ==
"drawMode") { c.drawMode =
static_cast<SpriteDrawMode>(value); }
2878 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2879 else {
return false; }
2881 }
else if (comp ==
"SpriteMask") {
2884 if (field ==
"rangeEndLayer") { c.rangeEndLayer =
static_cast<i32>(value); }
2885 else if (field ==
"rangeEndOrder") { c.rangeEndOrder =
static_cast<i32>(value); }
2886 else {
return false; }
2888 }
else if (comp ==
"TilemapLayer") {
2891 if (field ==
"orientation") { c.orientation =
static_cast<u8>(value); }
2892 else if (field ==
"staggerAxis") { c.staggerAxis =
static_cast<u8>(value); }
2893 else if (field ==
"staggerIndex") { c.staggerIndex =
static_cast<u8>(value); }
2895 else if (field ==
"tilesetColumns") { c.tilesetColumns =
static_cast<i32>(value); }
2896 else if (field ==
"renderLayer") { c.renderLayer =
static_cast<i32>(value); }
2897 else {
return false; }
2899 }
else if (comp ==
"TrailRenderer") {
2903 else if (field ==
"blendMode") { c.blendMode =
static_cast<i32>(value); }
2904 else if (field ==
"layer") { c.layer =
static_cast<i32>(value); }
2905 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2906 else {
return false; }
2908 }
else if (comp ==
"UIMask") {
2911 if (field ==
"mode") { c.mode =
static_cast<MaskMode>(value); }
2912 else {
return false; }
2914 }
else if (comp ==
"UINode") {
2917 if (field ==
"position") { c.position =
static_cast<UIPositionType>(value); }
2918 else if (field ==
"display") { c.display =
static_cast<UIDisplay>(value); }
2919 else if (field ==
"pointerEvents") { c.pointerEvents =
static_cast<UIPointerEvents>(value); }
2920 else if (field ==
"alignSelf") { c.alignSelf =
static_cast<AlignSelf>(value); }
2921 else {
return false; }
2923 }
else if (comp ==
"UIScroll") {
2926 if (field ==
"content") { c.content =
static_cast<u32>(value); }
2927 else if (field ==
"movement") { c.movement =
static_cast<ScrollMovement>(value); }
2928 else {
return false; }
2930 }
else if (comp ==
"UIVisual") {
2933 if (field ==
"visualType") { c.visualType =
static_cast<UIVisualType>(value); }
2935 else if (field ==
"fit") { c.fit =
static_cast<UIVisualFit>(value); }
2936 else if (field ==
"fillMethod") { c.fillMethod =
static_cast<UIFillMethod>(value); }
2937 else if (field ==
"fillOrigin") { c.fillOrigin =
static_cast<UIFillOrigin>(value); }
2938 else if (field ==
"material") { c.material =
static_cast<u32>(value); }
2939 else {
return false; }
2947i32 editor_getInt(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field) {
2948 auto entity =
static_cast<Entity>(e);
2949 if (!reg.
valid(entity))
return 0;
2950 if (comp ==
"Billboard") {
2953 if (field ==
"mode") {
return static_cast<i32>(c.mode); }
2954 }
else if (comp ==
"BitmapText") {
2957 if (field ==
"align") {
return static_cast<i32>(c.align); }
2958 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
2959 else if (field ==
"font") {
return static_cast<i32>(c.font.id()); }
2960 }
else if (comp ==
"BoxCollider2D") {
2963 if (field ==
"categoryBits") {
return static_cast<i32>(c.categoryBits); }
2964 else if (field ==
"maskBits") {
return static_cast<i32>(c.maskBits); }
2965 }
else if (comp ==
"Camera") {
2968 if (field ==
"projectionType") {
return static_cast<i32>(c.projectionType); }
2969 else if (field ==
"priority") {
return static_cast<i32>(c.priority); }
2970 else if (field ==
"clearFlags") {
return static_cast<i32>(c.clearFlags); }
2971 else if (field ==
"cullingMask") {
return static_cast<i32>(c.cullingMask); }
2972 else if (field ==
"renderTarget") {
return static_cast<i32>(c.renderTarget); }
2973 }
else if (comp ==
"Canvas") {
2976 if (field ==
"scaleMode") {
return static_cast<i32>(c.scaleMode); }
2977 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
2978 }
else if (comp ==
"CapsuleCollider2D") {
2981 if (field ==
"categoryBits") {
return static_cast<i32>(c.categoryBits); }
2982 else if (field ==
"maskBits") {
return static_cast<i32>(c.maskBits); }
2983 }
else if (comp ==
"CharacterController3D") {
2986 if (field ==
"layer") {
return static_cast<i32>(c.layer); }
2987 }
else if (comp ==
"CircleCollider2D") {
2990 if (field ==
"categoryBits") {
return static_cast<i32>(c.categoryBits); }
2991 else if (field ==
"maskBits") {
return static_cast<i32>(c.maskBits); }
2992 }
else if (comp ==
"ConvexCollider3D") {
2995 if (field ==
"mesh") {
return static_cast<i32>(c.mesh.id()); }
2996 }
else if (comp ==
"DragonBonesAnimation") {
2999 if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3000 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3001 }
else if (comp ==
"FlexContainer") {
3004 if (field ==
"direction") {
return static_cast<i32>(c.direction); }
3005 else if (field ==
"wrap") {
return static_cast<i32>(c.wrap); }
3006 else if (field ==
"justifyContent") {
return static_cast<i32>(c.justifyContent); }
3007 else if (field ==
"alignItems") {
return static_cast<i32>(c.alignItems); }
3008 else if (field ==
"alignContent") {
return static_cast<i32>(c.alignContent); }
3009 }
else if (comp ==
"Impostor") {
3012 if (field ==
"frames") {
return static_cast<i32>(c.frames); }
3013 else if (field ==
"resolution") {
return static_cast<i32>(c.resolution); }
3014 }
else if (comp ==
"LODGroup") {
3017 if (field ==
"lod1") {
return static_cast<i32>(c.lod1.id()); }
3018 else if (field ==
"lod2") {
return static_cast<i32>(c.lod2.id()); }
3019 else if (field ==
"lod3") {
return static_cast<i32>(c.lod3.id()); }
3020 }
else if (comp ==
"Light") {
3023 if (field ==
"type") {
return static_cast<i32>(c.type); }
3024 else if (field ==
"layerMin") {
return static_cast<i32>(c.layerMin); }
3025 else if (field ==
"layerMax") {
return static_cast<i32>(c.layerMax); }
3026 else if (field ==
"cookie") {
return static_cast<i32>(c.cookie.id()); }
3027 else if (field ==
"environment") {
return static_cast<i32>(c.environment.id()); }
3028 }
else if (comp ==
"LightProbeVolume") {
3031 if (field ==
"probes") {
return static_cast<i32>(c.probes.id()); }
3032 }
else if (comp ==
"MeshCollider3D") {
3035 if (field ==
"mesh") {
return static_cast<i32>(c.mesh.id()); }
3036 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3037 }
else if (comp ==
"MeshInstances") {
3040 if (field ==
"lod1Mesh") {
return static_cast<i32>(c.lod1Mesh.id()); }
3041 }
else if (comp ==
"MeshLightmap") {
3044 if (field ==
"lightmap") {
return static_cast<i32>(c.lightmap.id()); }
3045 }
else if (comp ==
"MeshRenderer") {
3048 if (field ==
"texture") {
return static_cast<i32>(c.texture.id()); }
3049 else if (field ==
"normalMap") {
return static_cast<i32>(c.normalMap.id()); }
3050 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3051 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3052 else if (field ==
"mesh") {
return static_cast<i32>(c.mesh.id()); }
3053 }
else if (comp ==
"MeshSkin") {
3056 if (field ==
"skinCache") {
return static_cast<i32>(c.skinCache); }
3057 }
else if (comp ==
"Parent") {
3060 if (field ==
"entity") {
return static_cast<i32>(
static_cast<u32>(c.entity)); }
3061 }
else if (comp ==
"ParticleCollider") {
3064 if (field ==
"shape") {
return static_cast<i32>(c.shape); }
3065 else if (field ==
"mask") {
return static_cast<i32>(c.mask); }
3066 }
else if (comp ==
"ParticleEmitter") {
3069 if (field ==
"burstCount") {
return static_cast<i32>(c.burstCount); }
3070 else if (field ==
"maxParticles") {
return static_cast<i32>(c.maxParticles); }
3071 else if (field ==
"shape") {
return static_cast<i32>(c.shape); }
3072 else if (field ==
"sizeEasing") {
return static_cast<i32>(c.sizeEasing); }
3073 else if (field ==
"colorEasing") {
return static_cast<i32>(c.colorEasing); }
3074 else if (field ==
"noiseOctaves") {
return static_cast<i32>(c.noiseOctaves); }
3075 else if (field ==
"texture") {
return static_cast<i32>(c.texture.id()); }
3076 else if (field ==
"spriteColumns") {
return static_cast<i32>(c.spriteColumns); }
3077 else if (field ==
"spriteRows") {
return static_cast<i32>(c.spriteRows); }
3078 else if (field ==
"blendMode") {
return static_cast<i32>(c.blendMode); }
3079 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3080 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3081 else if (field ==
"simulationSpace") {
return static_cast<i32>(c.simulationSpace); }
3082 else if (field ==
"renderMode") {
return static_cast<i32>(c.renderMode); }
3083 else if (field ==
"subEmitterTrigger") {
return static_cast<i32>(c.subEmitterTrigger); }
3084 else if (field ==
"subEmitter") {
return static_cast<i32>(c.subEmitter); }
3085 else if (field ==
"trailPoints") {
return static_cast<i32>(c.trailPoints); }
3086 else if (field ==
"collisionMode") {
return static_cast<i32>(c.collisionMode); }
3087 else if (field ==
"collisionMask") {
return static_cast<i32>(c.collisionMask); }
3088 else if (field ==
"collisionQueryBudget") {
return static_cast<i32>(c.collisionQueryBudget); }
3089 else if (field ==
"collisionFallback") {
return static_cast<i32>(c.collisionFallback); }
3090 else if (field ==
"collisionEventBudget") {
return static_cast<i32>(c.collisionEventBudget); }
3091 }
else if (comp ==
"ParticleForceField") {
3094 if (field ==
"type") {
return static_cast<i32>(c.type); }
3095 }
else if (comp ==
"PlanarReflection") {
3098 if (field ==
"axis") {
return static_cast<i32>(c.axis); }
3099 else if (field ==
"cullingMask") {
return static_cast<i32>(c.cullingMask); }
3100 else if (field ==
"quality") {
return static_cast<i32>(c.quality); }
3101 else if (field ==
"maxSize") {
return static_cast<i32>(c.maxSize); }
3102 else if (field ==
"update") {
return static_cast<i32>(c.update); }
3103 else if (field ==
"revision") {
return static_cast<i32>(c.revision); }
3104 }
else if (comp ==
"ReflectionProbe") {
3107 if (field ==
"reflection") {
return static_cast<i32>(c.reflection.id()); }
3108 else if (field ==
"slot") {
return static_cast<i32>(c.slot); }
3109 }
else if (comp ==
"RigidBody2D") {
3112 if (field ==
"bodyType") {
return static_cast<i32>(c.bodyType); }
3113 }
else if (comp ==
"RigidBody3D") {
3116 if (field ==
"bodyType") {
return static_cast<i32>(c.bodyType); }
3117 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3118 }
else if (comp ==
"SegmentCollider2D") {
3121 if (field ==
"categoryBits") {
return static_cast<i32>(c.categoryBits); }
3122 else if (field ==
"maskBits") {
return static_cast<i32>(c.maskBits); }
3123 }
else if (comp ==
"ShapeRenderer") {
3126 if (field ==
"shapeType") {
return static_cast<i32>(c.shapeType); }
3127 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3128 }
else if (comp ==
"SortingGroup") {
3131 if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3132 else if (field ==
"order") {
return static_cast<i32>(c.order); }
3133 }
else if (comp ==
"SpineAnimation") {
3136 if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3137 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3138 }
else if (comp ==
"SpringBoneCollider") {
3141 if (field ==
"shape") {
return static_cast<i32>(c.shape); }
3142 }
else if (comp ==
"Sprite") {
3145 if (field ==
"texture") {
return static_cast<i32>(c.texture.id()); }
3146 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3147 else if (field ==
"order") {
return static_cast<i32>(c.order); }
3148 else if (field ==
"maskInteraction") {
return static_cast<i32>(c.maskInteraction); }
3149 else if (field ==
"drawMode") {
return static_cast<i32>(c.drawMode); }
3150 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3151 }
else if (comp ==
"SpriteMask") {
3154 if (field ==
"rangeEndLayer") {
return static_cast<i32>(c.rangeEndLayer); }
3155 else if (field ==
"rangeEndOrder") {
return static_cast<i32>(c.rangeEndOrder); }
3156 }
else if (comp ==
"TilemapLayer") {
3159 if (field ==
"orientation") {
return static_cast<i32>(c.orientation); }
3160 else if (field ==
"staggerAxis") {
return static_cast<i32>(c.staggerAxis); }
3161 else if (field ==
"staggerIndex") {
return static_cast<i32>(c.staggerIndex); }
3162 else if (field ==
"tileset") {
return static_cast<i32>(c.tileset.id()); }
3163 else if (field ==
"tilesetColumns") {
return static_cast<i32>(c.tilesetColumns); }
3164 else if (field ==
"renderLayer") {
return static_cast<i32>(c.renderLayer); }
3165 }
else if (comp ==
"TrailRenderer") {
3168 if (field ==
"texture") {
return static_cast<i32>(c.texture.id()); }
3169 else if (field ==
"blendMode") {
return static_cast<i32>(c.blendMode); }
3170 else if (field ==
"layer") {
return static_cast<i32>(c.layer); }
3171 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3172 }
else if (comp ==
"UIMask") {
3175 if (field ==
"mode") {
return static_cast<i32>(c.mode); }
3176 }
else if (comp ==
"UINode") {
3179 if (field ==
"position") {
return static_cast<i32>(c.position); }
3180 else if (field ==
"display") {
return static_cast<i32>(c.display); }
3181 else if (field ==
"pointerEvents") {
return static_cast<i32>(c.pointerEvents); }
3182 else if (field ==
"alignSelf") {
return static_cast<i32>(c.alignSelf); }
3183 }
else if (comp ==
"UIScroll") {
3186 if (field ==
"content") {
return static_cast<i32>(c.content); }
3187 else if (field ==
"movement") {
return static_cast<i32>(c.movement); }
3188 }
else if (comp ==
"UIVisual") {
3191 if (field ==
"visualType") {
return static_cast<i32>(c.visualType); }
3192 else if (field ==
"texture") {
return static_cast<i32>(c.texture.id()); }
3193 else if (field ==
"fit") {
return static_cast<i32>(c.fit); }
3194 else if (field ==
"fillMethod") {
return static_cast<i32>(c.fillMethod); }
3195 else if (field ==
"fillOrigin") {
return static_cast<i32>(c.fillOrigin); }
3196 else if (field ==
"material") {
return static_cast<i32>(c.material); }
3203bool editor_setBool(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field,
bool value) {
3204 auto entity =
static_cast<Entity>(e);
3205 if (!reg.
valid(entity))
return false;
3206 if (comp ==
"Billboard") {
3209 if (field ==
"enabled") { c.enabled = value; }
3210 else {
return false; }
3212 }
else if (comp ==
"BitmapText") {
3215 if (field ==
"enabled") { c.enabled = value; }
3216 else {
return false; }
3218 }
else if (comp ==
"BoxCollider2D") {
3221 if (field ==
"isSensor") { c.isSensor = value; }
3222 else if (field ==
"enabled") { c.enabled = value; }
3223 else {
return false; }
3225 }
else if (comp ==
"BoxCollider3D") {
3228 if (field ==
"isSensor") { c.isSensor = value; }
3229 else if (field ==
"enabled") { c.enabled = value; }
3230 else {
return false; }
3232 }
else if (comp ==
"Camera") {
3235 if (field ==
"isActive") { c.isActive = value; }
3236 else if (field ==
"pixelPerfect") { c.pixelPerfect = value; }
3237 else {
return false; }
3239 }
else if (comp ==
"CapsuleCollider2D") {
3242 if (field ==
"isSensor") { c.isSensor = value; }
3243 else if (field ==
"enabled") { c.enabled = value; }
3244 else {
return false; }
3246 }
else if (comp ==
"CapsuleCollider3D") {
3249 if (field ==
"isSensor") { c.isSensor = value; }
3250 else if (field ==
"enabled") { c.enabled = value; }
3251 else {
return false; }
3253 }
else if (comp ==
"CharacterController3D") {
3256 if (field ==
"enabled") { c.enabled = value; }
3257 else if (field ==
"isOnFloor") { c.isOnFloor = value; }
3258 else {
return false; }
3260 }
else if (comp ==
"CircleCollider2D") {
3263 if (field ==
"isSensor") { c.isSensor = value; }
3264 else if (field ==
"enabled") { c.enabled = value; }
3265 else {
return false; }
3267 }
else if (comp ==
"ConvexCollider3D") {
3270 if (field ==
"isSensor") { c.isSensor = value; }
3271 else if (field ==
"enabled") { c.enabled = value; }
3272 else {
return false; }
3274 }
else if (comp ==
"Draggable") {
3277 if (field ==
"enabled") { c.enabled = value; }
3278 else if (field ==
"lockX") { c.lockX = value; }
3279 else if (field ==
"lockY") { c.lockY = value; }
3280 else if (field ==
"constrainMin") { c.constrainMin = value; }
3281 else if (field ==
"constrainMax") { c.constrainMax = value; }
3282 else {
return false; }
3284 }
else if (comp ==
"DragonBonesAnimation") {
3287 if (field ==
"loop") { c.loop = value; }
3288 else if (field ==
"playing") { c.playing = value; }
3289 else if (field ==
"flipX") { c.flipX = value; }
3290 else if (field ==
"flipY") { c.flipY = value; }
3291 else if (field ==
"enabled") { c.enabled = value; }
3292 else {
return false; }
3294 }
else if (comp ==
"GroupOpacity") {
3297 if (field ==
"enabled") { c.enabled = value; }
3298 else {
return false; }
3300 }
else if (comp ==
"Impostor") {
3303 if (field ==
"enabled") { c.enabled = value; }
3304 else {
return false; }
3306 }
else if (comp ==
"Interactable") {
3309 if (field ==
"enabled") { c.enabled = value; }
3310 else if (field ==
"blockRaycast") { c.blockRaycast = value; }
3311 else if (field ==
"raycastTarget") { c.raycastTarget = value; }
3312 else {
return false; }
3314 }
else if (comp ==
"LODGroup") {
3317 if (field ==
"enabled") { c.enabled = value; }
3318 else {
return false; }
3320 }
else if (comp ==
"Light") {
3323 if (field ==
"inverseSquare") { c.inverseSquare = value; }
3324 else if (field ==
"meshShadows") { c.meshShadows = value; }
3325 else if (field ==
"followEnvironmentSun") { c.followEnvironmentSun = value; }
3326 else if (field ==
"aimFollowedSun") { c.aimFollowedSun = value; }
3327 else if (field ==
"drawEnvironment") { c.drawEnvironment = value; }
3328 else if (field ==
"hemisphere") { c.hemisphere = value; }
3329 else if (field ==
"enabled") { c.enabled = value; }
3330 else {
return false; }
3332 }
else if (comp ==
"LightProbeVolume") {
3335 if (field ==
"capture") { c.capture = value; }
3336 else if (field ==
"enabled") { c.enabled = value; }
3337 else {
return false; }
3339 }
else if (comp ==
"MeshCollider3D") {
3342 if (field ==
"enabled") { c.enabled = value; }
3343 else {
return false; }
3345 }
else if (comp ==
"MeshRenderer") {
3348 if (field ==
"opaque") { c.opaque = value; }
3349 else if (field ==
"cullBackfaces") { c.cullBackfaces = value; }
3350 else if (field ==
"lit") { c.lit = value; }
3351 else if (field ==
"castShadows") { c.castShadows = value; }
3352 else if (field ==
"enabled") { c.enabled = value; }
3353 else {
return false; }
3355 }
else if (comp ==
"Occluder") {
3358 if (field ==
"enabled") { c.enabled = value; }
3359 else {
return false; }
3361 }
else if (comp ==
"ParticleCollider") {
3364 if (field ==
"inverted") { c.inverted = value; }
3365 else if (field ==
"enabled") { c.enabled = value; }
3366 else {
return false; }
3368 }
else if (comp ==
"ParticleEmitter") {
3371 if (field ==
"looping") { c.looping = value; }
3372 else if (field ==
"playOnStart") { c.playOnStart = value; }
3373 else if (field ==
"gpuSimulation") { c.gpuSimulation = value; }
3374 else if (field ==
"spriteLoop") { c.spriteLoop = value; }
3375 else if (field ==
"enabled") { c.enabled = value; }
3376 else if (field ==
"trailEnabled") { c.trailEnabled = value; }
3377 else if (field ==
"collisionEnabled") { c.collisionEnabled = value; }
3378 else if (field ==
"collisionEvents") { c.collisionEvents = value; }
3379 else {
return false; }
3381 }
else if (comp ==
"ParticleForceField") {
3384 if (field ==
"falloff") { c.falloff = value; }
3385 else if (field ==
"enabled") { c.enabled = value; }
3386 else {
return false; }
3388 }
else if (comp ==
"PlanarReflection") {
3391 if (field ==
"enabled") { c.enabled = value; }
3392 else {
return false; }
3394 }
else if (comp ==
"ReflectionProbe") {
3397 if (field ==
"enabled") { c.enabled = value; }
3398 else {
return false; }
3400 }
else if (comp ==
"RigidBody2D") {
3403 if (field ==
"fixedRotation") { c.fixedRotation = value; }
3404 else if (field ==
"bullet") { c.bullet = value; }
3405 else if (field ==
"enabled") { c.enabled = value; }
3406 else {
return false; }
3408 }
else if (comp ==
"RigidBody3D") {
3411 if (field ==
"fixedRotation") { c.fixedRotation = value; }
3412 else if (field ==
"continuousCollision") { c.continuousCollision = value; }
3413 else if (field ==
"enabled") { c.enabled = value; }
3414 else {
return false; }
3416 }
else if (comp ==
"SegmentCollider2D") {
3419 if (field ==
"isSensor") { c.isSensor = value; }
3420 else if (field ==
"enabled") { c.enabled = value; }
3421 else {
return false; }
3423 }
else if (comp ==
"ShadowCaster2D") {
3426 if (field ==
"enabled") { c.enabled = value; }
3427 else {
return false; }
3429 }
else if (comp ==
"ShapeRenderer") {
3432 if (field ==
"enabled") { c.enabled = value; }
3433 else {
return false; }
3435 }
else if (comp ==
"SortingGroup") {
3438 if (field ==
"enabled") { c.enabled = value; }
3439 else {
return false; }
3441 }
else if (comp ==
"SphereCollider3D") {
3444 if (field ==
"isSensor") { c.isSensor = value; }
3445 else if (field ==
"enabled") { c.enabled = value; }
3446 else {
return false; }
3448 }
else if (comp ==
"SpineAnimation") {
3451 if (field ==
"loop") { c.loop = value; }
3452 else if (field ==
"playing") { c.playing = value; }
3453 else if (field ==
"flipX") { c.flipX = value; }
3454 else if (field ==
"flipY") { c.flipY = value; }
3455 else if (field ==
"enabled") { c.enabled = value; }
3456 else {
return false; }
3458 }
else if (comp ==
"SpringBone") {
3461 if (field ==
"enabled") { c.enabled = value; }
3462 else {
return false; }
3464 }
else if (comp ==
"Sprite") {
3467 if (field ==
"lit") { c.lit = value; }
3468 else if (field ==
"flipX") { c.flipX = value; }
3469 else if (field ==
"flipY") { c.flipY = value; }
3470 else if (field ==
"enabled") { c.enabled = value; }
3471 else {
return false; }
3473 }
else if (comp ==
"SpriteMask") {
3476 if (field ==
"limitRange") { c.limitRange = value; }
3477 else if (field ==
"enabled") { c.enabled = value; }
3478 else {
return false; }
3480 }
else if (comp ==
"TilemapLayer") {
3483 if (field ==
"visible") { c.visible = value; }
3484 else if (field ==
"lit") { c.lit = value; }
3485 else {
return false; }
3487 }
else if (comp ==
"TrailRenderer") {
3490 if (field ==
"emitting") { c.emitting = value; }
3491 else if (field ==
"enabled") { c.enabled = value; }
3492 else {
return false; }
3494 }
else if (comp ==
"UIInteraction") {
3497 if (field ==
"hovered") { c.hovered = value; }
3498 else if (field ==
"pressed") { c.pressed = value; }
3499 else if (field ==
"justPressed") { c.justPressed = value; }
3500 else if (field ==
"justReleased") { c.justReleased = value; }
3501 else {
return false; }
3503 }
else if (comp ==
"UIMask") {
3506 if (field ==
"enabled") { c.enabled = value; }
3507 else {
return false; }
3509 }
else if (comp ==
"UIScroll") {
3512 if (field ==
"enabled") { c.enabled = value; }
3513 else if (field ==
"horizontal") { c.horizontal = value; }
3514 else if (field ==
"vertical") { c.vertical = value; }
3515 else if (field ==
"dragScroll") { c.dragScroll = value; }
3516 else {
return false; }
3518 }
else if (comp ==
"UIVisual") {
3521 if (field ==
"enabled") { c.enabled = value; }
3522 else {
return false; }
3530bool editor_getBool(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field) {
3531 auto entity =
static_cast<Entity>(e);
3532 if (!reg.
valid(entity))
return false;
3533 if (comp ==
"Billboard") {
3536 if (field ==
"enabled") {
return c.enabled; }
3537 }
else if (comp ==
"BitmapText") {
3540 if (field ==
"enabled") {
return c.enabled; }
3541 }
else if (comp ==
"BoxCollider2D") {
3544 if (field ==
"isSensor") {
return c.isSensor; }
3545 else if (field ==
"enabled") {
return c.enabled; }
3546 }
else if (comp ==
"BoxCollider3D") {
3549 if (field ==
"isSensor") {
return c.isSensor; }
3550 else if (field ==
"enabled") {
return c.enabled; }
3551 }
else if (comp ==
"Camera") {
3554 if (field ==
"isActive") {
return c.isActive; }
3555 else if (field ==
"pixelPerfect") {
return c.pixelPerfect; }
3556 }
else if (comp ==
"CapsuleCollider2D") {
3559 if (field ==
"isSensor") {
return c.isSensor; }
3560 else if (field ==
"enabled") {
return c.enabled; }
3561 }
else if (comp ==
"CapsuleCollider3D") {
3564 if (field ==
"isSensor") {
return c.isSensor; }
3565 else if (field ==
"enabled") {
return c.enabled; }
3566 }
else if (comp ==
"CharacterController3D") {
3569 if (field ==
"enabled") {
return c.enabled; }
3570 else if (field ==
"isOnFloor") {
return c.isOnFloor; }
3571 }
else if (comp ==
"CircleCollider2D") {
3574 if (field ==
"isSensor") {
return c.isSensor; }
3575 else if (field ==
"enabled") {
return c.enabled; }
3576 }
else if (comp ==
"ConvexCollider3D") {
3579 if (field ==
"isSensor") {
return c.isSensor; }
3580 else if (field ==
"enabled") {
return c.enabled; }
3581 }
else if (comp ==
"Draggable") {
3584 if (field ==
"enabled") {
return c.enabled; }
3585 else if (field ==
"lockX") {
return c.lockX; }
3586 else if (field ==
"lockY") {
return c.lockY; }
3587 else if (field ==
"constrainMin") {
return c.constrainMin; }
3588 else if (field ==
"constrainMax") {
return c.constrainMax; }
3589 }
else if (comp ==
"DragonBonesAnimation") {
3592 if (field ==
"loop") {
return c.loop; }
3593 else if (field ==
"playing") {
return c.playing; }
3594 else if (field ==
"flipX") {
return c.flipX; }
3595 else if (field ==
"flipY") {
return c.flipY; }
3596 else if (field ==
"enabled") {
return c.enabled; }
3597 }
else if (comp ==
"GroupOpacity") {
3600 if (field ==
"enabled") {
return c.enabled; }
3601 }
else if (comp ==
"Impostor") {
3604 if (field ==
"enabled") {
return c.enabled; }
3605 }
else if (comp ==
"Interactable") {
3608 if (field ==
"enabled") {
return c.enabled; }
3609 else if (field ==
"blockRaycast") {
return c.blockRaycast; }
3610 else if (field ==
"raycastTarget") {
return c.raycastTarget; }
3611 }
else if (comp ==
"LODGroup") {
3614 if (field ==
"enabled") {
return c.enabled; }
3615 }
else if (comp ==
"Light") {
3618 if (field ==
"inverseSquare") {
return c.inverseSquare; }
3619 else if (field ==
"meshShadows") {
return c.meshShadows; }
3620 else if (field ==
"followEnvironmentSun") {
return c.followEnvironmentSun; }
3621 else if (field ==
"aimFollowedSun") {
return c.aimFollowedSun; }
3622 else if (field ==
"drawEnvironment") {
return c.drawEnvironment; }
3623 else if (field ==
"hemisphere") {
return c.hemisphere; }
3624 else if (field ==
"enabled") {
return c.enabled; }
3625 }
else if (comp ==
"LightProbeVolume") {
3628 if (field ==
"capture") {
return c.capture; }
3629 else if (field ==
"enabled") {
return c.enabled; }
3630 }
else if (comp ==
"MeshCollider3D") {
3633 if (field ==
"enabled") {
return c.enabled; }
3634 }
else if (comp ==
"MeshRenderer") {
3637 if (field ==
"opaque") {
return c.opaque; }
3638 else if (field ==
"cullBackfaces") {
return c.cullBackfaces; }
3639 else if (field ==
"lit") {
return c.lit; }
3640 else if (field ==
"castShadows") {
return c.castShadows; }
3641 else if (field ==
"enabled") {
return c.enabled; }
3642 }
else if (comp ==
"Occluder") {
3645 if (field ==
"enabled") {
return c.enabled; }
3646 }
else if (comp ==
"ParticleCollider") {
3649 if (field ==
"inverted") {
return c.inverted; }
3650 else if (field ==
"enabled") {
return c.enabled; }
3651 }
else if (comp ==
"ParticleEmitter") {
3654 if (field ==
"looping") {
return c.looping; }
3655 else if (field ==
"playOnStart") {
return c.playOnStart; }
3656 else if (field ==
"gpuSimulation") {
return c.gpuSimulation; }
3657 else if (field ==
"spriteLoop") {
return c.spriteLoop; }
3658 else if (field ==
"enabled") {
return c.enabled; }
3659 else if (field ==
"trailEnabled") {
return c.trailEnabled; }
3660 else if (field ==
"collisionEnabled") {
return c.collisionEnabled; }
3661 else if (field ==
"collisionEvents") {
return c.collisionEvents; }
3662 }
else if (comp ==
"ParticleForceField") {
3665 if (field ==
"falloff") {
return c.falloff; }
3666 else if (field ==
"enabled") {
return c.enabled; }
3667 }
else if (comp ==
"PlanarReflection") {
3670 if (field ==
"enabled") {
return c.enabled; }
3671 }
else if (comp ==
"ReflectionProbe") {
3674 if (field ==
"enabled") {
return c.enabled; }
3675 }
else if (comp ==
"RigidBody2D") {
3678 if (field ==
"fixedRotation") {
return c.fixedRotation; }
3679 else if (field ==
"bullet") {
return c.bullet; }
3680 else if (field ==
"enabled") {
return c.enabled; }
3681 }
else if (comp ==
"RigidBody3D") {
3684 if (field ==
"fixedRotation") {
return c.fixedRotation; }
3685 else if (field ==
"continuousCollision") {
return c.continuousCollision; }
3686 else if (field ==
"enabled") {
return c.enabled; }
3687 }
else if (comp ==
"SegmentCollider2D") {
3690 if (field ==
"isSensor") {
return c.isSensor; }
3691 else if (field ==
"enabled") {
return c.enabled; }
3692 }
else if (comp ==
"ShadowCaster2D") {
3695 if (field ==
"enabled") {
return c.enabled; }
3696 }
else if (comp ==
"ShapeRenderer") {
3699 if (field ==
"enabled") {
return c.enabled; }
3700 }
else if (comp ==
"SortingGroup") {
3703 if (field ==
"enabled") {
return c.enabled; }
3704 }
else if (comp ==
"SphereCollider3D") {
3707 if (field ==
"isSensor") {
return c.isSensor; }
3708 else if (field ==
"enabled") {
return c.enabled; }
3709 }
else if (comp ==
"SpineAnimation") {
3712 if (field ==
"loop") {
return c.loop; }
3713 else if (field ==
"playing") {
return c.playing; }
3714 else if (field ==
"flipX") {
return c.flipX; }
3715 else if (field ==
"flipY") {
return c.flipY; }
3716 else if (field ==
"enabled") {
return c.enabled; }
3717 }
else if (comp ==
"SpringBone") {
3720 if (field ==
"enabled") {
return c.enabled; }
3721 }
else if (comp ==
"Sprite") {
3724 if (field ==
"lit") {
return c.lit; }
3725 else if (field ==
"flipX") {
return c.flipX; }
3726 else if (field ==
"flipY") {
return c.flipY; }
3727 else if (field ==
"enabled") {
return c.enabled; }
3728 }
else if (comp ==
"SpriteMask") {
3731 if (field ==
"limitRange") {
return c.limitRange; }
3732 else if (field ==
"enabled") {
return c.enabled; }
3733 }
else if (comp ==
"TilemapLayer") {
3736 if (field ==
"visible") {
return c.visible; }
3737 else if (field ==
"lit") {
return c.lit; }
3738 }
else if (comp ==
"TrailRenderer") {
3741 if (field ==
"emitting") {
return c.emitting; }
3742 else if (field ==
"enabled") {
return c.enabled; }
3743 }
else if (comp ==
"UIInteraction") {
3746 if (field ==
"hovered") {
return c.hovered; }
3747 else if (field ==
"pressed") {
return c.pressed; }
3748 else if (field ==
"justPressed") {
return c.justPressed; }
3749 else if (field ==
"justReleased") {
return c.justReleased; }
3750 }
else if (comp ==
"UIMask") {
3753 if (field ==
"enabled") {
return c.enabled; }
3754 }
else if (comp ==
"UIScroll") {
3757 if (field ==
"enabled") {
return c.enabled; }
3758 else if (field ==
"horizontal") {
return c.horizontal; }
3759 else if (field ==
"vertical") {
return c.vertical; }
3760 else if (field ==
"dragScroll") {
return c.dragScroll; }
3761 }
else if (comp ==
"UIVisual") {
3764 if (field ==
"enabled") {
return c.enabled; }
3771bool editor_setString(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field,
const std::string& value) {
3772 auto entity =
static_cast<Entity>(e);
3773 if (!reg.
valid(entity))
return false;
3774 if (comp ==
"BitmapText") {
3777 if (field ==
"text") { c.text = value; }
3778 else {
return false; }
3780 }
else if (comp ==
"DragonBonesAnimation") {
3783 if (field ==
"skeletonPath") { c.skeletonPath = value; }
3784 else if (field ==
"atlasPath") { c.atlasPath = value; }
3785 else if (field ==
"armature") { c.armature = value; }
3786 else if (field ==
"animation") { c.animation = value; }
3787 else {
return false; }
3789 }
else if (comp ==
"SpineAnimation") {
3792 if (field ==
"skeletonPath") { c.skeletonPath = value; }
3793 else if (field ==
"atlasPath") { c.atlasPath = value; }
3794 else if (field ==
"skin") { c.skin = value; }
3795 else if (field ==
"animation") { c.animation = value; }
3796 else {
return false; }
3805std::string editor_getString(
Registry& reg,
u32 e,
const std::string& comp,
const std::string& field) {
3806 auto entity =
static_cast<Entity>(e);
3807 if (!reg.
valid(entity))
return std::string{};
3808 if (comp ==
"BitmapText") {
3811 if (field ==
"text") {
return c.text; }
3812 }
else if (comp ==
"DragonBonesAnimation") {
3815 if (field ==
"skeletonPath") {
return c.skeletonPath; }
3816 else if (field ==
"atlasPath") {
return c.atlasPath; }
3817 else if (field ==
"armature") {
return c.armature; }
3818 else if (field ==
"animation") {
return c.animation; }
3819 }
else if (comp ==
"SpineAnimation") {
3822 if (field ==
"skeletonPath") {
return c.skeletonPath; }
3823 else if (field ==
"atlasPath") {
return c.atlasPath; }
3824 else if (field ==
"skin") {
return c.skin; }
3825 else if (field ==
"animation") {
return c.animation; }
3827 return std::string{};
3835 emscripten::function(
"editor_getComponentNames", &editor_getComponentNames);
3836 emscripten::function(
"editor_getComponentSchema", &editor_getComponentSchema);
3838 emscripten::function(
"editor_addComponent", &editor_addComponent);
3839 emscripten::function(
"editor_removeComponent", &editor_removeComponent);
3840 emscripten::function(
"editor_hasComponent", &editor_hasComponent);
3841 emscripten::function(
"editor_getComponents", &editor_getComponents);
3843 emscripten::function(
"editor_setFloat", &editor_setFloat);
3844 emscripten::function(
"editor_getFloat", &editor_getFloat);
3845 emscripten::function(
"editor_setInt", &editor_setInt);
3846 emscripten::function(
"editor_getInt", &editor_getInt);
3847 emscripten::function(
"editor_setBool", &editor_setBool);
3848 emscripten::function(
"editor_getBool", &editor_getBool);
3849 emscripten::function(
"editor_setString", &editor_setString);
3850 emscripten::function(
"editor_getString", &editor_getString);
3852 emscripten::register_vector<std::string>(
"VectorString");
A mesh that turns to whoever looks at it.
How a solver is allowed to move a body — the one answer both worlds give.
Camera component for rendering viewpoints.
Canvas component for 2D game resolution management.
The shapes that give a flat body its extent.
The rectangle a piece of world content occupies: a size, and the point of it the entity's transform s...
Pointer-drag configuration.
A DragonBones armature on an entity.
EMSCRIPTEN_BINDINGS(esengine_editor_api)
Hierarchy components for parent-child relationships.
A picture of a mesh, taken from many directions, drawn in its place once it is small.
The cheaper geometry that may stand in for a MeshRenderer once it is small.
2D light source component for the Lit material domain.
Arbitrary-geometry 2D mesh renderable (deformed sprites, polygons, water surfaces,...
A box sight does not pass through, so what stands behind it is not drawn. ShadowCaster2D answers wher...
A shape particles bounce off without any physics: a signed distance a compute kernel can answer per p...
A scene-placed force zone that pushes every world-space particle near it.
What a shiny surface standing HERE reflects, when the sky is not it. LightProbeVolume answers the sam...
Central ECS registry for entity and component management.
A body the flat world simulates.
A body the 3D world simulates, and the shapes that give it extent.
Marks an entity as a 2D shadow occluder for the Lit lighting path.
Makes a subtree sort as ONE unit against the rest of the scene.
Spine skeletal animation component.
Secondary motion for a chain of bones: hair, tails, cords, cloth edges.
Turns this entity's Sprite into a stencil the sprites drawn after it can be cut by.
2D sprite rendering component
Tilemap layer ECS component (editor-facing metadata).
World-space motion trail renderable (sword swipes, projectile/dash streaks, ribbon effects).
Velocity component for physics simulation.
Central container for all entities and components.
T & get(Entity entity)
Gets a component from an entity (must exist).
bool has(Entity entity) const
Checks if an entity has a specific component.
bool valid(Entity entity) const
Checks if an entity is currently valid.
void remove(Entity entity)
Removes a component from an entity.
T & patch(Entity entity)
Mutable access that says it writes: entity's T, stamped. Fatal where it has none, as get<T>() is.
T & emplace(Entity entity, Args &&... args)
Adds a component to an entity with in-place construction.
CanvasScaleMode
Canvas scaling mode for different screen resolutions.
ClearFlags
Camera clear flags.
bool setParent(Registry ®istry, Entity child, Entity newParent)
UIPositionType
Box positioning scheme. Absolute takes the node out of flex flow and places it by inset against the p...
UIVisualFit
How the texture is fitted into the node's box — CSS object-fit. Fill stretches to the box (the defaul...
SpringBoneShape
What a SpringBoneCollider is shaped like.
SpriteDrawMode
How a Sprite fills its box.
AlignSelf
Per-item cross-axis alignment override (CSS align-self). Lives on UINode since UINode carries the fle...
UIVisualType
How a UIVisual fills its UINode box. Replaces the old UIRenderer visualType + Image imageType pair: a...
ProjectionType
Camera projection type.
UIFillMethod
Fill mode for a Filled UIVisual. Horizontal/Vertical are linear crops along the axis; the Radial mode...
UIDisplay
CSS display. None removes the node AND its whole subtree from layout, rendering, and hit-testing — th...
UIPointerEvents
CSS pointer-events. None makes the node AND its subtree transparent to the pointer (drawn,...
void invalidateTransformComposition()
Say that composed world transforms are stale.
Handle< esengine::text::BitmapFont > BitmapFontHandle
Handle to a bitmap font resource.
Handle< esengine::Environment > EnvironmentHandle
Handle to a baked environment (irradiance + prefiltered reflection).
Handle< esengine::Texture > TextureHandle
Handle to a texture resource.
Handle< esengine::ProbeVolume > ProbeVolumeHandle
Handle to a grid of baked irradiance.
Handle< esengine::Mesh > MeshHandle
Handle to GPU-resident geometry.
std::int32_t i32
Signed 32-bit integer.
constexpr Entity INVALID_ENTITY
Invalid entity sentinel value.
std::uint32_t u32
Unsigned 32-bit integer.
std::uint8_t u8
Unsigned 8-bit integer.
float f32
32-bit floating point
Entity identifier with packed index + generation.
Turns the MeshRenderer beside it to face each view that draws it.
An axis-aligned box, sized in world units around the entity's origin.
Camera component for rendering viewpoints.
Canvas component for 2D game resolution management.
An upright capsule — the shape a character is.
A kinematic mover for a 3D player or NPC.
The rectangle of this entity's content, in its own units.
The convex hull of imported geometry — a shape a solver can push.
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.
Stands a card in for the MeshRenderer beside it once the object covers less than screenSize of the vi...
Stand-in geometry chosen by how much of the screen the object covers.
A box of baked irradiance: the light for what a bake cannot hold still.
A 2D light contributing to Lit-shaded materials.
Imported geometry, used as it is, for a level to collide against.
Many placements of the one mesh a MeshRenderer draws, as ONE renderable.
Where a MeshRenderer's BAKED light comes from: the atlas, and the rectangle of it this object occupie...
What SHAPE a MeshRenderer is in: how far it is blended towards each of the shapes its mesh carries.
What deforms a MeshRenderer: the entities its Joints channel indexes.
Declares a solid box a camera cannot see through.
Parent reference component.
A box inside which reflections come from a bake rather than from the sky.
A 2D shadow occluder. The box is centred on the entity's world position and turns with it; its size i...
One sorting identity for an entity and everything under it.
Spine skeletal animation component.
bool needsReload
Flag indicating skeleton needs to be reloaded.
A sphere or capsule a spring chain is kept out of, placed by its entity's transform.
A stencil cut from this entity's own Sprite.
UINode — the CSS box-model layout input (the CSS/Flex primary layout model).
UIVisual — the single UI visual component, merging the former low-level UIRenderer (what the renderer...
Velocity component for simple kinematic motion.