# GuiBase2d

GuiBase2d : `Instance`

## Overview

This is an abstract class inherited by 2D GuiObjects

## Properties

### AbsolutePosition

`Vector2`

This property specifies the pixel-based screen position where a UI element is rendered.

This value reflects the final computed position, accounting for the positions and sizes of parent UI elements, and is always relative to the element’s top-left corner.

#### Code Samples

```lua
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel

print("AbsolutePosition : ", TextLabel.AbsolutePosition)
```

### AbsoluteSize

`Vector2`

This property represents the pixel-based size of a UI element as rendered on the screen.

This value incorporates the parent’s size, AnchorPoint, and Scale settings, accurately reflecting the final on-screen size of the element.

#### Code Samples

```lua
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel

print("AbsoluteSize : ", TextLabel.AbsoluteSize)
```

### AutoLocalize

`boolean`

Determines whether automatic localization (Auto Translation) is applied to this GuiBase2d and its descendants.\
If AutoLocalize is true, the object is also included in Automatic Text Collection (ATC).

The default value is true. If set to false, automatic translation is disabled for the object and its entire child hierarchy.

The inheritance rules are as follows:

* If a child's AutoLocalize is false, translation is not applied to that object.
* If a parent's AutoLocalize is false, translation is not applied regardless of the child’s value.
* If a child's AutoLocalize is true, it follows the parent’s AutoLocalize setting.

#### Code Samples

```lua
local ScreenGui = script.Parent
local TextLabel = ScreenGui:WaitForChild("TextLabel")

TextLabel.AutoLocalize = false
```

## Methods

## Events


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.overdare.com/development/api-reference/classes/guibase2d.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
