Host typegenerated
Entity
An object in the game, such as a player, an enemy or a button. Scripts get these from calls like World.find and can store them, compare them and change their transform, sprite or shape.
10 members · engine 0.1.0
Entity.environment: SceneEnvironmentThe authored scene environment on this object, if present.Entity.light: LightThe object's 3D light, if it has one.Entity.light2d: Light2dThe object's 2D light, if it has one.light2d("halo")is another of its lights by name, ornull.Entity.particles: ParticlesThe object's particle emitter, if it has one.particles("surge")is another of its emitters by name, ornull.Entity.shape: ShapeThe object's drawn shape, if it has one.Entity.sight2d: Sight2dThe object's 2D viewer, if it has one.Entity.sprite: SpriteThe object's image (sprite), if it has one.Entity.transform: TransformWhere the object is, how it is turned and how big it is.Entity.ui_image: UiImageThe object's on-screen interface image, if it has one.Entity.world_text: WorldTextThe object's world text, if it has some.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b