this membersgenerated
this
What a script can reach on the object it is attached to, beyond its own fields.
11 members · engine 0.1.0
this.entity: EntityThe object in the game this script is attached to. Pass it to calls that act on an object, such asWorld.despawn(this.entity).this.environment: SceneEnvironmentThe scene environment on this object, if authored: ambient intensity/color and background with checked runtime writes.this.light: LightThe 3D light on this object: checked color, intensity, range, cone angles and independent enabled state.this.light2d: Light2dThe 2D light on this script's object, if it has one: its color, brightness and reach. Call it with a name,light2d("halo"), for another of the object's lights, ornullwhen it has none of that name.this.particles: ParticlesThe particle emitter on this script's object, if it has one: how many it throws and how fast, andplay(),stop()andemit(count). Call it with a name,particles("surge"), for another of the object's emitters, ornullwhen it has none of that name.this.shape: ShapeThe drawn shape on this script's object, if it has one: its colors, outline and how much of it is drawn.this.sight2d: Sight2dThe 2D viewer on this script's object, if it has one: how far it sees and how dim what it cannot see goes.this.sprite: SpriteThe image (sprite) on this script's object, if it has one: its color and drawing order.this.transform: TransformWhere this script's object is, how it is turned and how big it is. Change it to move the object.this.ui_image: UiImageThe on-screen interface image on this script's object, if it has one: its color and drawing order.this.world_text: WorldTextThe world text on this script's object, if it has some: its color, size and drawing order.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b