루아우 가이드
개요
특이사항
타입 선언
변수
local Gold: number = 1함수
local function Sum(a: number, b: number): number
return a + b
end
print(Sum(1, 2))
function AddScalarToVector3(v: Vector3, scalar: number): Vector3
return Vector3.new(v.X + scalar, v.Y + scalar, v.Z + scalar)
end
local Pos = Vector3.new(50, 0, 10)
print(AddScalarToVector3(Pos, 100))가변 인자 함수
테이블
인스턴스
타입 검사
자동 완성 연동

타입 추론 모드
타입 추론 모드
기능
--!nocheck

--!nonstrict

--!strict

유연한 타입 구조
선택적 타입
타입 캐스트
리터럴 타입 지정
유니언과 교차 타입
구문 및 표현식
복합 대입 연산자
연산자
기능
단축 if
continue 키워드
문자열 보간
반복문
Generic For Loops
Generalized Iteration
사용자 정의 타입
Type
Type Exports
Generic
제네릭
함수 제네릭
라이브러리
Table 복제 기능
문자열 Split 기능
Coroutine 종료
Task
task로 편리하게 coroutine 제어하기Last updated