LogService

사용되지 않는 항목 표시

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

만들 수 없음
서비스

이 서비스에 대한 중요 사항: 게임과 게임 엔진이 상황을 기록하는 방식에 따라 이 서비스는 예기치 않거나 신뢰할 수 없는 동작을 보일 수 있습니다.콘텐츠도 잘릴 수 있습니다.이 서비스에서 발생하는 이벤트 및 메시지의 내용을 중요한 게임 논리에 의존하지 마십시오.

출력된 텍스트를 읽을 수 있는 서비스.

요약

메서드

  • Roblox Studio 출력 창을 지웁니다.

  • 클라이언트가 출력 창에 표시하는 메시지의 메시지 문자열, 메시지 유형 및 메시지 시간을 가진 테이블의 테이블을 반환합니다. Returns a table of tables, each with the message string, message 입력, and timestamp of a message that the client displays in the output window.

이벤트

속성

메서드

ClearOutput

()

반환

()

GetLogHistory


반환

이벤트

MessageOut

매개 변수

message: string
messageType: Enum.MessageType

코드 샘플

LogService.MessageOut

local LogService = game:GetService("LogService")
local messageLabel = Instance.new("Message")
messageLabel.Parent = workspace
local function onMessageOut(message, messageType)
messageLabel.Text = "The message was " .. message .. " and the type was " .. tostring(messageType)
end
LogService.MessageOut:Connect(onMessageOut)