The Vector2 data type represents a pair of numbers with an X coordinate and a Y coordinate,[1] similar to a coordinate pair. Vector2 is most commonly used in GuiObjects, like Frames or ScreenGuis, when using GuiObjects' AbsolutePosition (also known as AbsoluteSize) properties.
Referenced by[]
- EditableImage.Size
- EditableImage:DrawCircle (center)
- EditableImage:DrawImage (position)
- EditableImage:DrawImageTransformed (position, scale)
- EditableImage:DrawLine (p1, p2)
- EditableImage:DrawRectangle (position, size)
- EditableImage:DrawTriangle (p1, p2, p3)
- EditableImage:ReadPixelsBuffer (position, size)
- EditableImage:WritePixelsBuffer (position, size)
- EditableMesh:AddUV (uv)
- EditableMesh:GetUV
- EditableMesh:SetUV (uv)
- BasePlayerGui:GetGuiObjectsInCircle (position)
- Camera.ViewportSize
- CaptureService:GetCaptureSizeAsync
- LinearVelocity.MaxPlanarAxesForce
- LinearVelocity.PlaneVelocity
- ExplorerFilterAutocompleter.ReplaceRange
- GamepadService:GetGamepadCursorPosition
- GamepadService:SetGamepadCursorPosition (position)
- GamepadService.GamepadThumbstick1Changed (event)
- GuiBase2d.AbsolutePosition
- GuiBase2d.AbsoluteSize
- GuiObject.AnchorPoint
- GuiObject.TouchPan (totalTranslation, velocity)
- ImageButton.ContentImageSize
- ImageButton.ImageRectOffset
- ImageButton.ImageRectSize
- TextButton.TextBounds
- ImageLabel.ContentImageSize
- ImageLabel.ImageRectOffset
- ImageLabel.ImageRectSize
- TextLabel.TextBounds
- ScrollingFrame.AbsoluteCanvasSize
- ScrollingFrame.AbsoluteWindowSize
- ScrollingFrame.CanvasPosition
- ScrollingFrame.MaxCanvasPosition
- ScrollingFrame.ScrollVelocity
- ScrollingFrame:GetSampledInertialVelocity
- TextBox.TextBounds
- VideoFrame.Resolution
- BillboardGui.SizeOffset
- PluginGui:GetRelativeMousePosition
- SurfaceGui.CanvasSize
- FloorWire.TextureSize
- ImageHandleAdornment.Size
- Path2D:GetTangentOnCurve
- Path2D:GetTangentOnCurveArcLength
- GuiService:GetHardwareSafeViewport
- GuiService:GetScreenResolution
- ParticleEmitter.SpreadAngle
- PluginDragEvent.Position
- ProximityPrompt.UIOffset
- StudioAttachment.Offset
- StudioAttachment.SourceAnchorPoint
- StudioAttachment.TargetAnchorPoint
- StudioCallout.AnchorPoint
- StudioDeviceEmulatorService.PivotPosition
- StudioDeviceEmulatorService:GetTouchPosition
- StudioDeviceEmulatorService:EmulatePCDeviceWithResolution (resolution)
- ChannelTabsConfiguration.AbsolutePosition
- ChannelTabsConfiguration.AbsoluteSize
- ChannelTabsConfiguration:SetAbsolutePosition (value)
- ChannelTabsConfiguration:SetAbsoluteSize (value)
- ChatInputBarConfiguration.AbsolutePosition
- ChatInputBarConfiguration.AbsolutePositionWrite
- ChatInputBarConfiguration.AbsoluteSize
- ChatInputBarConfiguration.AbsoluteSizeWrite
- ChatWindowConfiguration.AbsolutePosition
- ChatWindowConfiguration.AbsolutePositionWrite
- ChatWindowConfiguration.AbsoluteSize
- ChatWindowConfiguration.AbsoluteSizeWrite
- TextService:GetTextSize
- TextService:GetTextSize (frameSize)
- TextService:GetTextBoundsAsync
- UGCValidationService:GetEditableImageSize
- UGCValidationService:GetTextureSize
- UISizeConstraint.MaxSize
- UISizeConstraint.MinSize
- UIDragDetector.DragAxis
- UIDragDetector.DragContinue (inputPosition)
- UIDragDetector.DragEnd (inputPosition)
- UIDragDetector.DragStart (inputPosition)
- UIGradient.Offset
- UIGridStyleLayout.AbsoluteContentSize
- UIGridLayout.AbsoluteCellCount
- UIGridLayout.AbsoluteCellSize
- UserGameSettings.MouseSensitivityFirstPerson
- UserGameSettings.MouseSensitivityThirdPerson
- UserGameSettings.StartScreenPosition
- UserGameSettings.StartScreenSize
- UserInputService.BottomBarSize
- UserInputService.NavBarSize
- UserInputService.OnScreenKeyboardPosition
- UserInputService.OnScreenKeyboardSize
- UserInputService.RightBarSize
- UserInputService.StatusBarSize
- UserInputService:GetMouseDelta
- UserInputService:GetMouseLocation
- UserInputService:SendAppUISizes (statusBarSize, navBarSize, bottomBarSize, rightBarSize)
- UserInputService.PointerAction (pan)
- UserInputService.StatusBarTapped (position)
- UserInputService.TouchPan (totalTranslation, velocity)
- UserInputService.TouchTapInWorld (position)
- VideoPlayer.Resolution
- VirtualUser:Button1Down (position)
- VirtualUser:Button1Up (position)
- VirtualUser:Button2Down (position)
- VirtualUser:Button2Up (position)
- VirtualUser:ClickButton1 (position)
- VirtualUser:ClickButton2 (position)
- VirtualUser:MoveMouse (position)
- DynamicImage.Size (removed)
- DynamicImage:Copy (min, max) (removed)
- DynamicImage:Crop (min, max) (removed)
- DynamicImage:DrawCircle (center) (removed)
- DynamicImage:DrawImage (position) (removed)
- DynamicImage:DrawLine (p1, p2) (removed)
- DynamicImage:DrawRectangle (position, size) (removed)
- DynamicImage:ReadPixels (position, size) (removed)
- DynamicImage:Resize (size) (removed)
- DynamicImage:WritePixels (position, size) (removed)
- DynamicMesh:GetUV (removed)
- DynamicMesh:SetUV (uv) (removed)
- ExplorerFilterAutocompleterInstance.ReplaceRange (removed)
- ImageDataExperimental.Size (removed)
- ImageDataExperimental:DrawCircle (center) (removed)
- ImageDataExperimental:Resize (newSize) (removed)
- LinearVelocityConstraint.PlaneVelocity (removed)
- TextureGuiExperimental.Size (removed)
- TextureTrail.TextureSize (removed)
- AssetService:GetAssetThumbnailAsync (thumbnailSize) (removed)
- EditableImage:Copy (min, max) (removed)
- EditableImage:Crop (min, max) (removed)
- EditableImage:ReadPixels (position, size) (removed)
- EditableImage:Resize (size) (removed)
- EditableImage:WritePixels (position, size) (removed)
- GuiBase.AbsolutePosition (removed)
- GuiBase.AbsoluteSize (removed)
- Path2D.AbsoluteSize (removed)
- Player:MoveCharacter (walkDirection) (removed)
- UGCValidationService:GetTextureSizeSync (removed)
- UIGridLayout.AbsoluteSize (removed)
- UserInputService:RotateCamera (positionDelta) (removed)
- VirtualInputManager:SetViewportSize (sizePx) (removed)
See also[]
References[]
|
---|
|
Basic Lua types | |
---|
|
Roblox types | Colors | |
---|
| Sequences | |
---|
| Events | |
---|
| Vectors | |
---|
| Instances | |
---|
| Internal types | |
---|
| Other types | |
---|
|
---|
|
API reference only | |
---|