# Udim

## Overview

UDim은 하나의 축에 대한 값을 표현하기 위한 데이터 타입으로, 전체 크기에 비례하는 비율 값과 고정된 픽셀 단위의 보정 값을 함께 포함합니다. 이를 통해 화면 크기에 따라 유동적으로 변하면서도, 일정한 픽셀 오프셋을 유지하는 위치나 크기 계산이 가능합니다.

## Constructors

### new

전달된 스케일 값과 오프셋 값을 기반으로 하나의 UDim 객체를 생성하여 반환합니다. 생성된 UDim은 1차원 위치나 크기 계산에 사용할 수 있습니다.

#### Parameters

| `number` Scale  | 부모 크기를 기준으로 적용되는 상대적인 비율 값입니다. |
| --------------- | ------------------------------ |
| `number` Offset | 픽셀 단위로 적용되는 절대 값입니다.           |

#### Return

| `UDim` | 지정된 스케일 및 오프셋 값으로 구성된 UDim입니다. |
| ------ | ------------------------------ |

#### Code Samples

```lua
local UDim = UDim.new(0.5, 100)
```

## Properties

### Offset

`number`

픽셀 단위로 적용되는 절대 값입니다.

#### Code Samples

```lua
local UDim = UDim.new(0, 100)

print(UDim.Offset)
```

### Scale

`number`

부모 크기를 기준으로 적용되는 상대적인 비율 값입니다.

#### Code Samples

```lua
local UDim = UDim.new(0.5, 0)

print(UDim.Scale)
```

## 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/korean/development/api-reference/datatype/udim.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.
