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 |
MsaaWriteback | MsaaWriteback |
LinearGradient | LinearGradient |
AssetPath | AssetPath |
SpriteScalingMode | SpriteScalingMode |
SmolStr | SmolStr |
InfinitePlane3d | InfinitePlane3d |
SphereMeshBuilder | SphereMeshBuilder |
RegularPolygon | RegularPolygon |
GamepadConnection | GamepadConnection |
Rect | Rect |
Screenshot | Screenshot |
OcclusionCulling | OcclusionCulling |
ViewportNode | ViewportNode |
GlyphAtlasLocation | GlyphAtlasLocation |
MorphWeights | MorphWeights |
GlyphAtlasInfo | GlyphAtlasInfo |
Oklcha | Oklcha |
MotionVectorPrepass | MotionVectorPrepass |
AlignSelf | AlignSelf |
Window | Window |
FloatOrd | FloatOrd |
ButtonSettings | ButtonSettings |
Affine3A | Affine3A |
StaticTransformOptimizations | StaticTransformOptimizations |
GamepadInput | GamepadInput |
RepeatedGridTrack | RepeatedGridTrack |
i8 | I8 |
IVec4 | IVec4 |
bool | Bool |
ScriptAttachment | ScriptAttachment |
Wireframe2dConfig | Wireframe2dConfig |
URect | URect |
Hwba | Hwba |
WindowBackendScaleFactorChanged | WindowBackendScaleFactorChanged |
BorderRadius | BorderRadius |
Polyline3d | Polyline3d |
DMat3 | DMat3 |
StrikethroughColor | StrikethroughColor |
MainEntity | MainEntity |
LineBreak | LineBreak |
Polygon | Polygon |
CircularSectorMeshBuilder | CircularSectorMeshBuilder |
Cuboid | Cuboid |
RayCast2d | RayCast2d |
ManageAccessibilityUpdates | ManageAccessibilityUpdates |
ConicGradient | ConicGradient |
AtomicUsize | AtomicUsize |
ScriptAsset | ScriptAsset |
NonZeroU16 | NonZeroU16 |
I16Vec3 | I16Vec3 |
Rectangle | Rectangle |
NonZeroUsize | NonZeroUsize |
TextLayout | TextLayout |
PrimaryWindow | PrimaryWindow |
Segment3d | Segment3d |
Quat | Quat |
LinearRgba | LinearRgba |
Underline | Underline |
GamepadButtonStateChangedEvent | GamepadButtonStateChangedEvent |
BoundingCircle | BoundingCircle |
Camera2d | Camera2d |
NativeKeyCode | NativeKeyCode |
ShadowStyle | ShadowStyle |
AlphaMode2d | AlphaMode2d |
WinitUserEvent | WinitUserEvent |
GlobalTransform | GlobalTransform |
Vec4 | Vec4 |
NonZeroU32 | NonZeroU32 |
PresentMode | PresentMode |
Xyza | Xyza |
DepthPrepassDoubleBuffer | DepthPrepassDoubleBuffer |
ScriptTypeRegistration | ScriptTypeRegistration |
BorderColor | BorderColor |
CustomCursorUrl | CustomCursorUrl |
TextLayoutInfo | TextLayoutInfo |
CalculatedClip | CalculatedClip |
ConicalFrustumMeshBuilder | ConicalFrustumMeshBuilder |
BorderGradient | BorderGradient |
Stopwatch | Stopwatch |
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 |
Rhombus | Rhombus |
GlobalZIndex | GlobalZIndex |
CascadesFrusta | CascadesFrusta |
ImageNode | ImageNode |
Dir2 | Dir2 |
Wireframe2dMaterial | Wireframe2dMaterial |
ScriptQueryResult | ScriptQueryResult |
AccumulatedMouseMotion | AccumulatedMouseMotion |
Cow | Cow |
AtomicI64 | AtomicI64 |
Hsva | Hsva |
EulerRot | EulerRot |
AccessibilitySystems | AccessibilitySystems |
Color | Color |
RenderTarget | RenderTarget |
GamepadRumbleRequest | GamepadRumbleRequest |
I8Vec4 | I8Vec4 |
ConeMeshBuilder | ConeMeshBuilder |
ClearColorConfig | ClearColorConfig |
Rot2 | Rot2 |
InputFocusVisible | InputFocusVisible |
ChildOf | ChildOf |
SphereKind | SphereKind |
RenderVisibleEntities | RenderVisibleEntities |
Text | Text |
TransformTreeChanged | TransformTreeChanged |
ScriptResourceRegistration | ScriptResourceRegistration |
Camera | Camera |
WindowMoved | WindowMoved |
WindowScaleFactorChanged | WindowScaleFactorChanged |
NormalPrepass | NormalPrepass |
MouseMotion | MouseMotion |
GridTrackRepetition | GridTrackRepetition |
Key | Key |
I8Vec2 | I8Vec2 |
ColorMaterial | ColorMaterial |
ZIndex | ZIndex |
Visibility | Visibility |
WindowPosition | WindowPosition |
NoAutoAabb | NoAutoAabb |
BlendState | BlendState |
Triangle3dMeshBuilder | Triangle3dMeshBuilder |
Affine3 | Affine3 |
ColorGrading | ColorGrading |
VisibilityRange | VisibilityRange |
AutoNavigationConfig | AutoNavigationConfig |
DeferredPrepass | DeferredPrepass |
TextNodeFlags | TextNodeFlags |
GamepadRumbleIntensity | GamepadRumbleIntensity |
InteropError | InteropError |
TilemapChunk | TilemapChunk |
FunctionArgInfo | FunctionArgInfo |
Name | Name |
Triangle2dMeshBuilder | Triangle2dMeshBuilder |
isize | Isize |
OverflowClipBox | OverflowClipBox |
CylinderAnchor | CylinderAnchor |
Justify | Justify |
Range | Range |
ShaderStorageBuffer | ShaderStorageBuffer |
ButtonAxisSettings | ButtonAxisSettings |
ComponentTicks | ComponentTicks |
PlaneMeshBuilder | PlaneMeshBuilder |
SyncToRenderWorld | SyncToRenderWorld |
ScreenSpaceTransmissionQuality | ScreenSpaceTransmissionQuality |
TilemapChunkMeshCache | TilemapChunkMeshCache |
CylinderMeshBuilder | CylinderMeshBuilder |
GlobalsUniform | GlobalsUniform |
Duration | Duration |
Fixed | Fixed |
U8Vec4 | U8Vec4 |
FontWeight | FontWeight |
TemporaryRenderEntity | TemporaryRenderEntity |
GamepadEvent | GamepadEvent |
Children | Children |
BoxShadow | BoxShadow |
DVec2 | DVec2 |
NormalizedRenderTarget | NormalizedRenderTarget |
GamepadConnectionEvent | GamepadConnectionEvent |
Mesh3d | Mesh3d |
MipBias | MipBias |
I64Vec3 | I64Vec3 |
u64 | U64 |
MouseScrollUnit | MouseScrollUnit |
WindowResizeConstraints | WindowResizeConstraints |
CuboidMeshBuilder | CuboidMeshBuilder |
BVec3A | BVec3A |
Wireframe2d | Wireframe2d |
u128 | U128 |
CapsuleUvProfile | CapsuleUvProfile |
DefaultQueryFilters | DefaultQueryFilters |
LayoutConfig | LayoutConfig |
BoxSizing | BoxSizing |
DoubleTapGesture | DoubleTapGesture |
EnabledButtons | EnabledButtons |
AxisSettings | AxisSettings |
Laba | Laba |
Exposure | Exposure |
usize | Usize |
Wireframe2dColor | Wireframe2dColor |
PositionedGlyph | PositionedGlyph |
Dir3 | Dir3 |
i32 | I32 |
ContextKey | ContextKey |
MonitorSelection | MonitorSelection |
Sprite | Sprite |
Ellipse | Ellipse |
TabGroup | TabGroup |
BVec3 | BVec3 |
TextSpan | TextSpan |
CallbackLabel | CallbackLabel |
Tonemapping | Tonemapping |
RunGeometry | RunGeometry |
RayCast3d | RayCast3d |
ScriptComponentRegistration | ScriptComponentRegistration |
WindowLevel | WindowLevel |
CursorOptions | CursorOptions |
AtomicU8 | AtomicU8 |
TorusMeshBuilder | TorusMeshBuilder |
Tick | Tick |
NonNilUuid | NonNilUuid |
OsString | OsString |
CubemapLayout | CubemapLayout |
PinchGesture | PinchGesture |
ReflectSystemGraphNode | ReflectSystemGraphNode |
AtomicU32 | AtomicU32 |
MaxTrackSizingFunction | MaxTrackSizingFunction |
BVec4 | BVec4 |
CameraRenderGraph | CameraRenderGraph |
InputFocus | InputFocus |
DebandDither | DebandDither |
Ime | Ime |
JustifySelf | JustifySelf |
WindowOccluded | WindowOccluded |
WindowResolution | WindowResolution |
Frustum | Frustum |
Mat3A | Mat3A |
FocusableArea | FocusableArea |
Indices | Indices |
ReflectNodeId | ReflectNodeId |
ResolvedBorderRadius | ResolvedBorderRadius |
NoWireframe2d | NoWireframe2d |
Camera3dDepthTextureUsage | Camera3dDepthTextureUsage |
AtomicIsize | AtomicIsize |
CursorMoved | CursorMoved |
KeyboardFocusLost | KeyboardFocusLost |
ImageRenderTarget | ImageRenderTarget |
Text2d | Text2d |
WindowFocused | WindowFocused |
U64Vec3 | U64Vec3 |
FontSmoothing | FontSmoothing |
DAffine3 | DAffine3 |
Plane3d | Plane3d |
Polyline3dMeshBuilder | Polyline3dMeshBuilder |
IgnoreScroll | IgnoreScroll |
LocationContext | LocationContext |
Text2dShadow | Text2dShadow |
AlignItems | AlignItems |
Val | Val |
ImageNodeSize | ImageNodeSize |
UVec3 | UVec3 |
MainPassResolutionOverride | MainPassResolutionOverride |
i128 | I128 |
UiRect | UiRect |
BoundingSphereCast | BoundingSphereCast |
UntypedAssetId | UntypedAssetId |
GridAutoFlow | GridAutoFlow |
MinTrackSizingFunction | MinTrackSizingFunction |
Capsule2d | Capsule2d |
InheritedVisibility | InheritedVisibility |
VideoMode | VideoMode |
SliceScaleMode | SliceScaleMode |
Arc2d | Arc2d |
ReflectReference | ReflectReference |
ClearColor | ClearColor |
ScriptValue | ScriptValue |
CircleMeshBuilder | CircleMeshBuilder |
Label | Label |
CursorIcon | CursorIcon |
FocusPolicy | FocusPolicy |
BackgroundGradient | BackgroundGradient |
Vec3 | Vec3 |
ObservedBy | ObservedBy |
CustomCursor | CustomCursor |
CircularSector | CircularSector |
ReflectableScheduleLabel | ReflectableScheduleLabel |
Tetrahedron | Tetrahedron |
EaseFunction | EaseFunction |
SubCameraView | SubCameraView |
PanGesture | PanGesture |
Projection | Projection |
Oklaba | Oklaba |
Capsule3dMeshBuilder | Capsule3dMeshBuilder |
GamepadButtonChangedEvent | GamepadButtonChangedEvent |
U16Vec3 | U16Vec3 |
Segment2d | Segment2d |
WindowRef | WindowRef |
Isometry2d | Isometry2d |
Triangle2d | Triangle2d |
CircularSegmentMeshBuilder | CircularSegmentMeshBuilder |
u16 | U16 |
WindowEvent | WindowEvent |
AutoDirectionalNavigation | AutoDirectionalNavigation |
RenderLayers | RenderLayers |
PrimaryMonitor | PrimaryMonitor |
Strikethrough | Strikethrough |
DirectionalNavigationMap | DirectionalNavigationMap |
NodeImageMode | NodeImageMode |
f32 | F32 |
ComputedUiTargetCamera | ComputedUiTargetCamera |
EntityGeneration | EntityGeneration |
Ray3d | Ray3d |
CascadesVisibleEntities | CascadesVisibleEntities |
ContentSize | ContentSize |
AtomicU16 | AtomicU16 |
ButtonState | ButtonState |
CompositeAlphaMode | CompositeAlphaMode |
I64Vec4 | I64Vec4 |
DMat2 | DMat2 |
CubemapVisibleEntities | CubemapVisibleEntities |
BackgroundColor | BackgroundColor |
Node | Node |
DVec3 | DVec3 |
Transform | Transform |
TileData | TileData |
EntityHash | EntityHash |
Aabb2d | Aabb2d |
Namespace | Namespace |
TouchInput | TouchInput |
NonZeroU128 | NonZeroU128 |
OverflowClipMargin | OverflowClipMargin |
InterpolationColorSpace | InterpolationColorSpace |
LineHeight | LineHeight |
WindowClosed | WindowClosed |
Ray2d | Ray2d |
DynamicScriptFunctionMut | DynamicFunctionMut |
char | Char |
Aabb | Aabb |
ScriptError | ScriptError |
DepthPrepass | DepthPrepass |
DynamicScriptFunction | DynamicFunction |
Instant | Instant |
UVec4 | UVec4 |
DVec4 | DVec4 |
GridTrack | GridTrack |
Circle | Circle |
UiTransform | UiTransform |
GamepadAxisChangedEvent | GamepadAxisChangedEvent |
JumpAt | JumpAt |
RawGamepadEvent | RawGamepadEvent |
MeshMorphWeights | MeshMorphWeights |
IRect | IRect |
Mesh2d | Mesh2d |
AngularColorStop | AngularColorStop |
AtomicBool | AtomicBool |
Segment3dMeshBuilder | Segment3dMeshBuilder |
DMat4 | DMat4 |
u32 | U32 |
TabIndex | TabIndex |
BoundingCircleCast | BoundingCircleCast |
ReflectSystemSet | ReflectSystemSet |
NonZeroI32 | NonZeroI32 |
CustomProjection | CustomProjection |
Entity | Entity |
Triangle3d | Triangle3d |
Image | Image |
CircularSegment | CircularSegment |
ComputedUiRenderTargetInfo | ComputedUiRenderTargetInfo |
ColorStop | ColorStop |
BVec4A | BVec4A |
Dir3A | Dir3A |
Gradient | Gradient |
ScriptSystemBuilder | ScriptSystemBuilder |
EllipseMeshBuilder | EllipseMeshBuilder |
Vec2 | Vec2 |
RadialGradient | RadialGradient |
TextColor | TextColor |
U64Vec2 | U64Vec2 |
NonZeroI8 | NonZeroI8 |
DAffine2 | DAffine2 |
NonZeroI64 | NonZeroI64 |
Lcha | Lcha |
TypeId | TypeId |
DynamicComponent | DynamicComponent |
WindowResized | WindowResized |
FlexDirection | FlexDirection |
Disabled | Disabled |
Vec3A | Vec3A |
JustifyItems | JustifyItems |
Val2 | Val2 |
AnnulusMeshBuilder | AnnulusMeshBuilder |
AlignContent | AlignContent |
OrthographicProjection | OrthographicProjection |
UiTargetCamera | UiTargetCamera |
Interval | Interval |
RawGamepadAxisChangedEvent | RawGamepadAxisChangedEvent |
U16Vec4 | U16Vec4 |
ScriptComponent | ScriptComponent |
WindowThemeChanged | WindowThemeChanged |
DeferredPrepassDoubleBuffer | DeferredPrepassDoubleBuffer |
AlphaMode | AlphaMode |
AssetIndex | AssetIndex |
FunctionCallContext | FunctionCallContext |
CompassQuadrant | CompassQuadrant |
CompassOctant | CompassOctant |
TextBounds | TextBounds |
RotationGesture | RotationGesture |
ReflectSystemGraph | ReflectSystemGraph |
FunctionInfo | FunctionInfo |
Monitor | Monitor |
Outline | Outline |
Capsule3d | Capsule3d |
Gamepad | Gamepad |
RangeFull | RangeFull |
EntityIndexSet | EntityIndexSet |
ReflectSchedule | ReflectSchedule |
Uuid | Uuid |
PathBuf | PathBuf |
BorderRect | BorderRect |
UntypedHandle | UntypedHandle |
Mesh2dWireframe | Mesh2dWireframe |
ReflectSystem | ReflectSystem |
ReadbackComplete | ReadbackComplete |
Torus | Torus |
U8Vec3 | U8Vec3 |
ConeAnchor | ConeAnchor |
FontFeatures | FontFeatures |
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 |
ColorGradingSection | ColorGradingSection |
AtomicU64 | AtomicU64 |
AabbCast2d | AabbCast2d |
Remove | Remove |
TemporalJitter | TemporalJitter |
Insert | Insert |
OrderIndependentTransparencySettings | OrderIndependentTransparencySettings |
CursorLeft | CursorLeft |
WindowCloseRequested | WindowCloseRequested |
Dir4 | Dir4 |
ConicalFrustum | ConicalFrustum |
i64 | I64 |
RequestRedraw | RequestRedraw |
CameraMainTextureUsages | CameraMainTextureUsages |
Sphere | Sphere |
NavNeighbors | NavNeighbors |
RegularPolygonMeshBuilder | RegularPolygonMeshBuilder |
ScreenshotCaptured | ScreenshotCaptured |
TextBackgroundColor | TextBackgroundColor |
WindowTheme | WindowTheme |
TouchPhase | TouchPhase |
BVec2 | BVec2 |
Viewport | Viewport |
SocketAddr | SocketAddr |
U16Vec2 | U16Vec2 |
Overflow | Overflow |
ConvexPolygon | ConvexPolygon |
Timer | Timer |
NonZeroI128 | NonZeroI128 |
NonZeroU8 | NonZeroU8 |
u8 | U8 |
MouseButtonInput | MouseButtonInput |
CustomCursorImage | CustomCursorImage |
VisibleEntities | VisibleEntities |
ScreenEdge | ScreenEdge |
CameraOutputMode | CameraOutputMode |
TextureFormat | TextureFormat |
WindowMode | WindowMode |
IVec2 | IVec2 |
Isometry3d | Isometry3d |
VideoModeSelection | VideoModeSelection |
RemovedComponentEntity | RemovedComponentEntity |
I64Vec2 | I64Vec2 |
FlexWrap | FlexWrap |
TextureAtlas | TextureAtlas |
UiPosition | UiPosition |
CubemapFrusta | CubemapFrusta |
Srgba | Srgba |
PositionType | PositionType |
KeyboardInput | KeyboardInput |
Mat2 | Mat2 |
Button | Button |
NormalizedWindowRef | NormalizedWindowRef |
String | String |
GamepadAxis | GamepadAxis |
AtomicI8 | AtomicI8 |
NonZeroIsize | NonZeroIsize |
CursorGrabMode | CursorGrabMode |
CircularMeshUvMode | CircularMeshUvMode |
GamepadSettings | GamepadSettings |
VisibilityClass | VisibilityClass |
ViewVisibility | ViewVisibility |
Mat4 | Mat4 |
AabbCast3d | AabbCast3d |
GridPlacement | GridPlacement |
ScriptQueryBuilder | ScriptQueryBuilder |
U8Vec2 | U8Vec2 |
AspectRatio | AspectRatio |
UnderlineColor | UnderlineColor |
Capsule2dMeshBuilder | Capsule2dMeshBuilder |
i16 | I16 |
ConvexPolygonMeshBuilder | ConvexPolygonMeshBuilder |
Camera3d | Camera3d |
ComputedTextBlock | ComputedTextBlock |
NoFrustumCulling | NoFrustumCulling |
CursorEntered | CursorEntered |
ForceTouch | ForceTouch |
FontFeatureTag | FontFeatureTag |
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 |
Plane2d | Plane2d |
RenderAssetUsages | RenderAssetUsages |
Msaa | Msaa |
AccumulatedMouseScroll | AccumulatedMouseScroll |
Skybox | Skybox |
FileDragAndDrop | FileDragAndDrop |
MouseWheel | MouseWheel |
ComponentId | ComponentId |
Annulus | Annulus |
KeyCode | KeyCode |
ScrollPosition | ScrollPosition |
EntityIndex | EntityIndex |
FunctionReturnInfo | FunctionReturnInfo |
ComputedNode | ComputedNode |
Camera3dDepthLoadOp | Camera3dDepthLoadOp |
MeshTag | MeshTag |
Arc | Arc |
Line2d | Line2d |
NonZeroU64 | NonZeroU64 |
AutoFocus | AutoFocus |
AppLifecycle | AppLifecycle |
PerspectiveProjection | PerspectiveProjection |
Display | Display |
Hdr | Hdr |
TextureAtlasLayout | TextureAtlasLayout |
TetrahedronMeshBuilder | TetrahedronMeshBuilder |
FontHinting | FontHinting |
SystemCursorIcon | SystemCursorIcon |
UiGlobalTransform | UiGlobalTransform |
AtomicI32 | AtomicI32 |
RelativeCursorPosition | RelativeCursorPosition |
RawGamepadButtonChangedEvent | RawGamepadButtonChangedEvent |
MouseButton | MouseButton |
Interaction | Interaction |
IVec3 | IVec3 |
TimerMode | TimerMode |
I16Vec2 | I16Vec2 |
Anchor | Anchor |
RectangleMeshBuilder | RectangleMeshBuilder |