Controller

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

만들 수 없음

컨트롤러 개체, 예를 들어 HumanoidController 개체의 기본 클래스.

요약

메서드

이벤트

속성

메서드

BindButton

()

지정된 버튼에 재정의 바인드를 활성화합니다.

매개 변수

button: Enum.Button
기본값: ""
caption: string
기본값: ""

반환

()

코드 샘플

The example below when placed inside a LocalScript, would result in a GUI saying "Press Backspace to win!".

Controller:BindButton1

local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")

GetButton

버튼이 누르거나 누르지 않는지 여부를 반환합니다.

매개 변수

button: Enum.Button
기본값: ""

반환

UnbindButton

()

버튼의 바인딩을 제거합니다.

매개 변수

button: Enum.Button
기본값: ""

반환

()

이벤트

ButtonChanged

바인딩된 버튼의 누르기 상태가 변경될 때 발사됩니다.이 이벤트는 Controller:GetButton()와 함께 사용하여 바인딩된 버튼이 누르거나 누르지 않는지 확인할 수 있습니다.

매개 변수

button: Enum.Button