Reference
Component reference
Every component line you can write in a scene file, with its values.
Shared and 3D
| Line | Values | Notes |
|---|---|---|
-Position:x,y,z | metres | or a single value for all three |
-Rotation:x,y,z | degrees | ZXY order, left-handed |
-Scale:x,y,z | factor | or one value |
-Velocity:x,y,z | m/s | needs MoveByVelocity |
-AngularVelocity:x,y,z | per second | needs RotateByAngularVelocity |
-Primitive:Type[,size | sx,sy,sz[,segments[,rings]]] | Cube, Sphere, Cylinder, Capsule, Wedge, Quad | generated mesh |
-Mesh:<uuid> | imported mesh | |
-Material:<shader>,<texture>[,r,g,b[,a]] | UUIDs, tint 0–1 | EAF81A2663BA92E = standard lit shader |
-MaterialMaps:normal,metalRough,ao,emissive | UUIDs or 0 | PBR maps |
-MaterialProps:x,y,z,w[,…] | shader-graph parameters | |
-PerspectiveCamera:fovDeg[,near,far] | with PlayerTag = the player camera | |
-Rotation2D:pitch,yaw | degrees | the player camera's look direction |
-Color:r,g,b | 0–1 | clear colour of a camera |
-DirectionalLight:dx,dy,dz | direction | one per scene |
-LightColor:r,g,b | or one value | |
-PointLight:radius[,intensity] | ||
-Animator:clip[,speed[,loop]] | skinned meshes | |
-ParticleSystem:<uuid>[,rate,capacity,seed] | ||
-AudioSource:<clip>,gain,attMin,attMax[,loop] | needs AudioSystem | |
-ReverbZone:radius[,rt60,wet,predelayMs] | ||
-Parent:<EntityName> | 3D hierarchy | |
-CsgBrush:add|subtract|intersect[,order] | primitives only | |
-Script:Assets/Scripts/X.tgscript | path | needs ScriptRun |
-LOD:far or -LOD:near,far | metres |
2D
| Line | Values | Notes |
|---|---|---|
-Position2D:x,y | world units | |
-Velocity2D:x,y | units/s | adds MoveByVelocity2D |
-Scale2D:x,y | factor | negative flips |
-Angle2D:deg | degrees | |
-ZOrder:n | −32767…32767 | higher on top |
-Tint:r,g,b[,a] | 0–1 | |
-Sprite:<textureUuid> | flipbook if the texture's .mt has atlas: | |
-Rig:<uuid> | cutout rig | |
-Tilemap:<uuid> | position = bottom-left | |
-Camera2D:orthoHeight | world units shown vertically | |
-Collider2D:box,hw,hh[,ox,oy,material][,sensor] / circle,r[,…] | category=0x.., mask=0x.. optional | |
-PhysicsBody2D:mass,linDamp,angDamp[,flags,angVel,gravityScale] | flags: kinematic, fixedrotation, ccd, nosleep, reportscollisions | |
-PhysicsMaterialOverride2D:friction,restitution,density | ||
-Joint2D:distance|rope|spring,<partner>,rest[,stiff,damp][,break] |
Tags (no value)
| Tag | Means |
|---|---|
-PlayerTag | this is the player |
-PlayerInputTag | the player is driven by input (FreeLookCamera) |
-Static | never moves (cheaper to render) |
-Inactive | disabled |
-Occluder | hides what's behind it from rendering |
-CutoutMaterial · -BlendMaterial · -EmissiveMaterial | material render modes |
Components declared by the engine but not listed here can still be written as
-ShortName:field1,field2,…. The loader fills them field by field.