Module ambient_api_core::core::app::components
source · Expand description
Auto-generated component definitions.
Functions
- Cursor position: Absolute mouse cursor position in screen-space. This is the logical position. Multiply by the
window_scale_factor
to get the physical position. - Delta time: How long the previous tick took in seconds.
- Description: A human-friendly description for this entity.
- Element: The identifier of the
Element
that controls this entity. - Element unmanaged children: If this is set, the user is expected to manage the children of the
Element
themselves. - Epoch time: Time since epoch (Jan 1, 1970). Non_monotonic.
- Game time: Time since the game was started. Monotonic.
- Main Package Name: The name of the main package being run.
- Main scene: If attached, this entity belongs to the main scene.
- Map seed: A random number seed for this map.
- Name: A human-friendly name for this entity.
- Reference count: Ref-counted enity. If this entity doesn’t have a
parent
component, and the ref count reaches 0, it will be removed together with all its children recursively. - Selectable: If attached, this object can be selected in the editor.
- Snap to ground: This object should automatically be moved with the terrain if the terrain is changed.
- Tags: Tags for categorizing this entity.
- UI scene: If attached, this entity belongs to the UI scene.
- Window logical size: The logical size is the physical size divided by the scale factor.
- Window physical size: The physical size is the actual number of pixels on the screen.
- Window scale factor: The DPI/pixel scale factor of the window.