Globals
Global Values
Global values that are accessible anywhere inside scripts. You should avoid naming conflicts with these and trying to overwrite or edit them.
Instances
Instances containing actual accessible values.
| Instance | Type |
|---|---|
types | HashMap<String, ScriptTypeRegistration | ScriptComponentRegistration | ScriptResourceRegistration> |
world | World |
script_asset | Handle<ScriptAsset> |
entity | Entity |
Static Instances
Static type references, existing for the purpose of typed static function calls.
| Instance | Type |
|---|---|
ScalingMode | ScalingMode |
GamepadButton | GamepadButton |
Polyline2d | Polyline2d |
Replace | Replace |
RadialGradientShape | RadialGradientShape |
I16Vec4 | I16Vec4 |
TextureSlicer | TextureSlicer |
AccessibilityRequested | AccessibilityRequested |
AssetPath | AssetPath |
LinearGradient | LinearGradient |
SmolStr | SmolStr |
InfinitePlane3d | InfinitePlane3d |
SphereMeshBuilder | SphereMeshBuilder |
RegularPolygon | RegularPolygon |
GamepadConnection | GamepadConnection |
Rect | Rect |
Screenshot | Screenshot |
OcclusionCulling | OcclusionCulling |
ViewportNode | ViewportNode |
MorphWeights | MorphWeights |
GlyphAtlasLocation | GlyphAtlasLocation |
GlyphAtlasInfo | GlyphAtlasInfo |
Oklcha | Oklcha |
MotionVectorPrepass | MotionVectorPrepass |
AlignSelf | AlignSelf |
Window | Window |
FloatOrd | FloatOrd |
ButtonSettings | ButtonSettings |
Affine3A | Affine3A |
GamepadInput | GamepadInput |
URect | URect |
RepeatedGridTrack | RepeatedGridTrack |
i8 | I8 |
IVec4 | IVec4 |
bool | Bool |
ScriptAttachment | ScriptAttachment |
Wireframe2dConfig | Wireframe2dConfig |
Hwba | Hwba |
WindowBackendScaleFactorChanged | WindowBackendScaleFactorChanged |
BorderRadius | BorderRadius |
Polyline3d | Polyline3d |
DMat3 | DMat3 |
MainEntity | MainEntity |
LineBreak | LineBreak |
Polygon | Polygon |
CircularSectorMeshBuilder | CircularSectorMeshBuilder |
Cuboid | Cuboid |
RayCast2d | RayCast2d |
ManageAccessibilityUpdates | ManageAccessibilityUpdates |
AtomicUsize | AtomicUsize |
ConicGradient | ConicGradient |
Internal | Internal |
ScriptAsset | ScriptAsset |
NonZeroU16 | NonZeroU16 |
I16Vec3 | I16Vec3 |
Rectangle | Rectangle |
NonZeroUsize | NonZeroUsize |
TextLayout | TextLayout |
PrimaryWindow | PrimaryWindow |
Segment3d | Segment3d |
Quat | Quat |
LinearRgba | LinearRgba |
RayId | RayId |
GamepadButtonStateChangedEvent | GamepadButtonStateChangedEvent |
BoundingCircle | BoundingCircle |
Camera2d | Camera2d |
AlphaMode2d | AlphaMode2d |
ShadowStyle | ShadowStyle |
NativeKeyCode | NativeKeyCode |
GlobalTransform | GlobalTransform |
Vec4 | Vec4 |
NonZeroU32 | NonZeroU32 |
PresentMode | PresentMode |
Xyza | Xyza |
ScriptTypeRegistration | ScriptTypeRegistration |
BorderColor | BorderColor |
CustomCursorUrl | CustomCursorUrl |
TextLayoutInfo | TextLayoutInfo |
CalculatedClip | CalculatedClip |
ConicalFrustumMeshBuilder | ConicalFrustumMeshBuilder |
Stopwatch | Stopwatch |
BorderGradient | BorderGradient |
RangeInclusive | RangeInclusive |
Cylinder | Cylinder |
AtomicI16 | AtomicI16 |
Real | Real |
Polyline2dMeshBuilder | Polyline2dMeshBuilder |
RenderEntity | RenderEntity |
Line3d | Line3d |
Cone | Cone |
JustifyContent | JustifyContent |
Add | Add |
Edge | Edge |
UVec2 | UVec2 |
NonZeroI16 | NonZeroI16 |
TextFont | TextFont |
ColorGradingGlobal | ColorGradingGlobal |
Move | Move |
GlobalZIndex | GlobalZIndex |
ImageNode | ImageNode |
CascadesFrusta | CascadesFrusta |
DragStart | DragStart |
Dir2 | Dir2 |
PressDirection | PressDirection |
Wireframe2dMaterial | Wireframe2dMaterial |
AccumulatedMouseMotion | AccumulatedMouseMotion |
HitData | HitData |
ScriptQueryResult | ScriptQueryResult |
Cow | Cow |
AtomicI64 | AtomicI64 |
Rhombus | Rhombus |
Hsva | Hsva |
EulerRot | EulerRot |
AccessibilitySystems | AccessibilitySystems |
RenderTarget | RenderTarget |
Color | Color |
GamepadRumbleRequest | GamepadRumbleRequest |
I8Vec4 | I8Vec4 |
ConeMeshBuilder | ConeMeshBuilder |
ClearColorConfig | ClearColorConfig |
Rot2 | Rot2 |
InputFocusVisible | InputFocusVisible |
ChildOf | ChildOf |
TransformTreeChanged | TransformTreeChanged |
SphereKind | SphereKind |
Text | Text |
ScriptResourceRegistration | ScriptResourceRegistration |
RenderVisibleEntities | RenderVisibleEntities |
Camera | Camera |
WindowMoved | WindowMoved |
PointerButton | PointerButton |
NormalPrepass | NormalPrepass |
WindowScaleFactorChanged | WindowScaleFactorChanged |
MouseMotion | MouseMotion |
GridTrackRepetition | GridTrackRepetition |
Key | Key |
I8Vec2 | I8Vec2 |
ColorMaterial | ColorMaterial |
Visibility | Visibility |
ZIndex | ZIndex |
WindowPosition | WindowPosition |
Triangle3dMeshBuilder | Triangle3dMeshBuilder |
Affine3 | Affine3 |
ColorGrading | ColorGrading |
VisibilityRange | VisibilityRange |
DeferredPrepass | DeferredPrepass |
TextNodeFlags | TextNodeFlags |
Press | Press |
GamepadRumbleIntensity | GamepadRumbleIntensity |
InteropError | InteropError |
TilemapChunk | TilemapChunk |
PointerPress | PointerPress |
FunctionArgInfo | FunctionArgInfo |
Name | Name |
isize | Isize |
Justify | Justify |
OverflowClipBox | OverflowClipBox |
CylinderAnchor | CylinderAnchor |
Triangle2dMeshBuilder | Triangle2dMeshBuilder |
Range | Range |
ShaderStorageBuffer | ShaderStorageBuffer |
ButtonAxisSettings | ButtonAxisSettings |
ComponentTicks | ComponentTicks |
PlaneMeshBuilder | PlaneMeshBuilder |
SyncToRenderWorld | SyncToRenderWorld |
TilemapChunkMeshCache | TilemapChunkMeshCache |
ScreenSpaceTransmissionQuality | ScreenSpaceTransmissionQuality |
CylinderMeshBuilder | CylinderMeshBuilder |
GlobalsUniform | GlobalsUniform |
Duration | Duration |
Fixed | Fixed |
U8Vec4 | U8Vec4 |
TemporaryRenderEntity | TemporaryRenderEntity |
GamepadEvent | GamepadEvent |
Children | Children |
BoxShadow | BoxShadow |
DVec2 | DVec2 |
GamepadConnectionEvent | GamepadConnectionEvent |
NormalizedRenderTarget | NormalizedRenderTarget |
Mesh3d | Mesh3d |
MipBias | MipBias |
I64Vec3 | I64Vec3 |
u64 | U64 |
WindowResizeConstraints | WindowResizeConstraints |
MouseScrollUnit | MouseScrollUnit |
BVec3A | BVec3A |
CuboidMeshBuilder | CuboidMeshBuilder |
Wireframe2d | Wireframe2d |
CapsuleUvProfile | CapsuleUvProfile |
u128 | U128 |
DefaultQueryFilters | DefaultQueryFilters |
LayoutConfig | LayoutConfig |
BoxSizing | BoxSizing |
DragDrop | DragDrop |
PointerInput | PointerInput |
DoubleTapGesture | DoubleTapGesture |
EnabledButtons | EnabledButtons |
AxisSettings | AxisSettings |
Laba | Laba |
Exposure | Exposure |
DirectlyHovered | DirectlyHovered |
usize | Usize |
ContextKey | ContextKey |
PositionedGlyph | PositionedGlyph |
Dir3 | Dir3 |
i32 | I32 |
Wireframe2dColor | Wireframe2dColor |
MonitorSelection | MonitorSelection |
Sprite | Sprite |
Ellipse | Ellipse |
Cancel | Cancel |
TabGroup | TabGroup |
BVec3 | BVec3 |
TextSpan | TextSpan |
CallbackLabel | CallbackLabel |
Tonemapping | Tonemapping |
RayCast3d | RayCast3d |
ScriptComponentRegistration | ScriptComponentRegistration |
WindowLevel | WindowLevel |
AtomicU8 | AtomicU8 |
CursorOptions | CursorOptions |
TorusMeshBuilder | TorusMeshBuilder |
OsString | OsString |
Tick | Tick |
NonNilUuid | NonNilUuid |
CubemapLayout | CubemapLayout |
PinchGesture | PinchGesture |
ReflectSystemGraphNode | ReflectSystemGraphNode |
AtomicU32 | AtomicU32 |
BVec4 | BVec4 |
MaxTrackSizingFunction | MaxTrackSizingFunction |
CameraRenderGraph | CameraRenderGraph |
InputFocus | InputFocus |
DebandDither | DebandDither |
Ime | Ime |
WindowOccluded | WindowOccluded |
JustifySelf | JustifySelf |
WindowResolution | WindowResolution |
Frustum | Frustum |
Mat3A | Mat3A |
ResolvedBorderRadius | ResolvedBorderRadius |
Indices | Indices |
ReflectNodeId | ReflectNodeId |
EntityRow | EntityRow |
Camera3dDepthTextureUsage | Camera3dDepthTextureUsage |
AtomicIsize | AtomicIsize |
CursorMoved | CursorMoved |
KeyboardFocusLost | KeyboardFocusLost |
NoWireframe2d | NoWireframe2d |
ImageRenderTarget | ImageRenderTarget |
Polyline3dMeshBuilder | Polyline3dMeshBuilder |
WindowFocused | WindowFocused |
U64Vec3 | U64Vec3 |
Text2dShadow | Text2dShadow |
DAffine3 | DAffine3 |
LocationContext | LocationContext |
FontSmoothing | FontSmoothing |
Text2d | Text2d |
Plane3d | Plane3d |
AlignItems | AlignItems |
ImageNodeSize | ImageNodeSize |
Val | Val |
UVec3 | UVec3 |
i128 | I128 |
MainPassResolutionOverride | MainPassResolutionOverride |
UiRect | UiRect |
BoundingSphereCast | BoundingSphereCast |
GridAutoFlow | GridAutoFlow |
UntypedAssetId | UntypedAssetId |
MinTrackSizingFunction | MinTrackSizingFunction |
Capsule2d | Capsule2d |
InheritedVisibility | InheritedVisibility |
VideoMode | VideoMode |
SliceScaleMode | SliceScaleMode |
Arc2d | Arc2d |
ReflectReference | ReflectReference |
ClearColor | ClearColor |
ScriptValue | ScriptValue |
CircleMeshBuilder | CircleMeshBuilder |
Label | Label |
CustomCursor | CustomCursor |
FocusPolicy | FocusPolicy |
BackgroundGradient | BackgroundGradient |
Vec3 | Vec3 |
CircularSector | CircularSector |
ObservedBy | ObservedBy |
CursorIcon | CursorIcon |
ReflectableScheduleLabel | ReflectableScheduleLabel |
Tetrahedron | Tetrahedron |
PanGesture | PanGesture |
SubCameraView | SubCameraView |
EaseFunction | EaseFunction |
PointerLocation | PointerLocation |
Projection | Projection |
Oklaba | Oklaba |
Drag | Drag |
Capsule3dMeshBuilder | Capsule3dMeshBuilder |
GamepadButtonChangedEvent | GamepadButtonChangedEvent |
U16Vec3 | U16Vec3 |
Segment2d | Segment2d |
Triangle2d | Triangle2d |
Isometry2d | Isometry2d |
u16 | U16 |
WindowRef | WindowRef |
CircularSegmentMeshBuilder | CircularSegmentMeshBuilder |
WindowEvent | WindowEvent |
RenderLayers | RenderLayers |
CompositeAlphaMode | CompositeAlphaMode |
PrimaryMonitor | PrimaryMonitor |
DirectionalNavigationMap | DirectionalNavigationMap |
NodeImageMode | NodeImageMode |
f32 | F32 |
DragEnter | DragEnter |
Ray3d | Ray3d |
AtomicU16 | AtomicU16 |
EntityGeneration | EntityGeneration |
CascadesVisibleEntities | CascadesVisibleEntities |
I64Vec4 | I64Vec4 |
ButtonState | ButtonState |
ComputedUiTargetCamera | ComputedUiTargetCamera |
ContentSize | ContentSize |
DMat2 | DMat2 |
CubemapVisibleEntities | CubemapVisibleEntities |
BackgroundColor | BackgroundColor |
Node | Node |
DVec3 | DVec3 |
Transform | Transform |
InterpolationColorSpace | InterpolationColorSpace |
EntityHash | EntityHash |
Aabb2d | Aabb2d |
TileData | TileData |
NonZeroU128 | NonZeroU128 |
TouchInput | TouchInput |
Namespace | Namespace |
OverflowClipMargin | OverflowClipMargin |
LineHeight | LineHeight |
WindowClosed | WindowClosed |
Ray2d | Ray2d |
DynamicScriptFunctionMut | DynamicFunctionMut |
char | Char |
Aabb | Aabb |
ScriptError | ScriptError |
UVec4 | UVec4 |
DynamicScriptFunction | DynamicFunction |
Instant | Instant |
DepthPrepass | DepthPrepass |
DragLeave | DragLeave |
DVec4 | DVec4 |
GridTrack | GridTrack |
Circle | Circle |
UiTransform | UiTransform |
JumpAt | JumpAt |
GamepadAxisChangedEvent | GamepadAxisChangedEvent |
RawGamepadEvent | RawGamepadEvent |
MeshMorphWeights | MeshMorphWeights |
Pickable | Pickable |
BoundingCircleCast | BoundingCircleCast |
IRect | IRect |
AngularColorStop | AngularColorStop |
AtomicBool | AtomicBool |
Triangle3d | Triangle3d |
DMat4 | DMat4 |
u32 | U32 |
TabIndex | TabIndex |
Mesh2d | Mesh2d |
ReflectSystemSet | ReflectSystemSet |
NonZeroI32 | NonZeroI32 |
CustomProjection | CustomProjection |
Entity | Entity |
Hovered | Hovered |
Image | Image |
Segment3dMeshBuilder | Segment3dMeshBuilder |
PointerAction | PointerAction |
WakeUp | WakeUp |
CircularSegment | CircularSegment |
BVec4A | BVec4A |
ColorStop | ColorStop |
ComputedUiRenderTargetInfo | ComputedUiRenderTargetInfo |
Dir3A | Dir3A |
Gradient | Gradient |
ScriptSystemBuilder | ScriptSystemBuilder |
DragEntry | DragEntry |
EllipseMeshBuilder | EllipseMeshBuilder |
RadialGradient | RadialGradient |
TextColor | TextColor |
Vec2 | Vec2 |
U64Vec2 | U64Vec2 |
DAffine2 | DAffine2 |
NonZeroI8 | NonZeroI8 |
Click | Click |
NonZeroI64 | NonZeroI64 |
Lcha | Lcha |
Vec3A | Vec3A |
DynamicComponent | DynamicComponent |
WindowResized | WindowResized |
FlexDirection | FlexDirection |
Disabled | Disabled |
TypeId | TypeId |
JustifyItems | JustifyItems |
Val2 | Val2 |
AlignContent | AlignContent |
AnnulusMeshBuilder | AnnulusMeshBuilder |
Interval | Interval |
UiTargetCamera | UiTargetCamera |
OrthographicProjection | OrthographicProjection |
RawGamepadAxisChangedEvent | RawGamepadAxisChangedEvent |
WindowThemeChanged | WindowThemeChanged |
ScriptComponent | ScriptComponent |
U16Vec4 | U16Vec4 |
Scroll | Scroll |
AlphaMode | AlphaMode |
FunctionCallContext | FunctionCallContext |
AssetIndex | AssetIndex |
CompassQuadrant | CompassQuadrant |
ReflectSystemGraph | ReflectSystemGraph |
TextBounds | TextBounds |
CompassOctant | CompassOctant |
RotationGesture | RotationGesture |
FunctionInfo | FunctionInfo |
Monitor | Monitor |
Outline | Outline |
DragOver | DragOver |
Capsule3d | Capsule3d |
RangeFull | RangeFull |
Gamepad | Gamepad |
ReflectSchedule | ReflectSchedule |
Uuid | Uuid |
PathBuf | PathBuf |
BorderRect | BorderRect |
UntypedHandle | UntypedHandle |
Mesh2dWireframe | Mesh2dWireframe |
ReflectSystem | ReflectSystem |
ReadbackComplete | ReadbackComplete |
Torus | Torus |
U8Vec3 | U8Vec3 |
ConeAnchor | ConeAnchor |
PointerHits | PointerHits |
DQuat | DQuat |
Hsla | Hsla |
U64Vec4 | U64Vec4 |
WindowDestroyed | WindowDestroyed |
f64 | F64 |
I8Vec3 | I8Vec3 |
SpriteImageMode | SpriteImageMode |
Mesh | Mesh |
BoundingSphere | BoundingSphere |
NativeKey | NativeKey |
UiScale | UiScale |
Virtual | Virtual |
TextEntity | TextEntity |
OverflowAxis | OverflowAxis |
AtomicU64 | AtomicU64 |
ColorGradingSection | ColorGradingSection |
AabbCast2d | AabbCast2d |
Over | Over |
Remove | Remove |
CursorLeft | CursorLeft |
WindowCloseRequested | WindowCloseRequested |
Insert | Insert |
OrderIndependentTransparencySettings | OrderIndependentTransparencySettings |
TemporalJitter | TemporalJitter |
Dir4 | Dir4 |
ConicalFrustum | ConicalFrustum |
i64 | I64 |
CameraMainTextureUsages | CameraMainTextureUsages |
RequestRedraw | RequestRedraw |
RegularPolygonMeshBuilder | RegularPolygonMeshBuilder |
Sphere | Sphere |
NavNeighbors | NavNeighbors |
ScreenshotCaptured | ScreenshotCaptured |
TextBackgroundColor | TextBackgroundColor |
WindowTheme | WindowTheme |
TouchPhase | TouchPhase |
BVec2 | BVec2 |
Viewport | Viewport |
Overflow | Overflow |
U16Vec2 | U16Vec2 |
SocketAddr | SocketAddr |
ConvexPolygon | ConvexPolygon |
Timer | Timer |
NonZeroI128 | NonZeroI128 |
NonZeroU8 | NonZeroU8 |
u8 | U8 |
MouseButtonInput | MouseButtonInput |
CustomCursorImage | CustomCursorImage |
DragEnd | DragEnd |
ScreenEdge | ScreenEdge |
VisibleEntities | VisibleEntities |
IVec2 | IVec2 |
WindowMode | WindowMode |
Isometry3d | Isometry3d |
VideoModeSelection | VideoModeSelection |
RemovedComponentEntity | RemovedComponentEntity |
I64Vec2 | I64Vec2 |
FlexWrap | FlexWrap |
UiPosition | UiPosition |
CubemapFrusta | CubemapFrusta |
TextureAtlas | TextureAtlas |
Button | Button |
PositionType | PositionType |
PointerInputSettings | PointerInputSettings |
Mat2 | Mat2 |
KeyboardInput | KeyboardInput |
Out | Out |
String | String |
GamepadAxis | GamepadAxis |
PointerId | PointerId |
NormalizedWindowRef | NormalizedWindowRef |
Srgba | Srgba |
NonZeroIsize | NonZeroIsize |
AtomicI8 | AtomicI8 |
CursorGrabMode | CursorGrabMode |
CircularMeshUvMode | CircularMeshUvMode |
GamepadSettings | GamepadSettings |
VisibilityClass | VisibilityClass |
ViewVisibility | ViewVisibility |
Mat4 | Mat4 |
AabbCast3d | AabbCast3d |
GridPlacement | GridPlacement |
ScriptQueryBuilder | ScriptQueryBuilder |
U8Vec2 | U8Vec2 |
AspectRatio | AspectRatio |
Capsule2dMeshBuilder | Capsule2dMeshBuilder |
i16 | I16 |
ConvexPolygonMeshBuilder | ConvexPolygonMeshBuilder |
Camera3d | Camera3d |
ComputedTextBlock | ComputedTextBlock |
NoFrustumCulling | NoFrustumCulling |
CursorEntered | CursorEntered |
ForceTouch | ForceTouch |
WindowClosing | WindowClosing |
InternalWindowState | InternalWindowState |
WindowCreated | WindowCreated |
TilemapChunkTileData | TilemapChunkTileData |
Despawn | Despawn |
RhombusMeshBuilder | RhombusMeshBuilder |
Aabb3d | Aabb3d |
SkinnedMesh | SkinnedMesh |
Affine2 | Affine2 |
VisibleMeshEntities | VisibleMeshEntities |
Mat3 | Mat3 |
ManualTextureViewHandle | ManualTextureViewHandle |
EntityHashSet | EntityHashSet |
TextShadow | TextShadow |
PointerInteraction | PointerInteraction |
Plane2d | Plane2d |
RenderAssetUsages | RenderAssetUsages |
Msaa | Msaa |
AccumulatedMouseScroll | AccumulatedMouseScroll |
Skybox | Skybox |
FileDragAndDrop | FileDragAndDrop |
MouseWheel | MouseWheel |
ComponentId | ComponentId |
Annulus | Annulus |
KeyCode | KeyCode |
ScrollPosition | ScrollPosition |
FunctionReturnInfo | FunctionReturnInfo |
PickingInteraction | PickingInteraction |
Camera3dDepthLoadOp | Camera3dDepthLoadOp |
MeshTag | MeshTag |
Arc | Arc |
ComputedNode | ComputedNode |
PickingSettings | PickingSettings |
Line2d | Line2d |
NonZeroU64 | NonZeroU64 |
AutoFocus | AutoFocus |
AppLifecycle | AppLifecycle |
PerspectiveProjection | PerspectiveProjection |
Display | Display |
Hdr | Hdr |
TextureAtlasLayout | TextureAtlasLayout |
TetrahedronMeshBuilder | TetrahedronMeshBuilder |
Location | Location |
Release | Release |
SystemCursorIcon | SystemCursorIcon |
UiGlobalTransform | UiGlobalTransform |
AtomicI32 | AtomicI32 |
RelativeCursorPosition | RelativeCursorPosition |
RawGamepadButtonChangedEvent | RawGamepadButtonChangedEvent |
MouseButton | MouseButton |
Interaction | Interaction |
IVec3 | IVec3 |
TimerMode | TimerMode |
I16Vec2 | I16Vec2 |
Anchor | Anchor |
RectangleMeshBuilder | RectangleMeshBuilder |