이 서비스에 대한 중요 사항: 게임과 게임 엔진이 상황을 기록하는 방식에 따라 이 서비스는 예기치 않거나 신뢰할 수 없는 동작을 보일 수 있습니다.콘텐츠도 잘릴 수 있습니다.이 서비스에서 발생하는 이벤트 및 메시지의 내용을 중요한 게임 논리에 의존하지 마십시오.
출력된 텍스트를 읽을 수 있는 서비스.
요약
메서드
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
Roblox Studio 출력 창을 지웁니다.
로그 기록도 지워지므로 LogService.GetLogHistory 는 전에 LogService.ClearOutput 호출 이전의 항목을 반환하지 않습니다.
반환
GetLogHistory
신뢰할 수 없는 행동 게임 엔진이 상황을 기록하는 방식에 따라 변경, 예기치 않거나 신뢰할 수 없는 행동이 발생할 수 있습니다.중요한 게임 논리에 의존해서는 안됩니다.
클라이언트가 출력 창에 표시하는 메시지의 메시지 문자열, 메시지 유형 및 메시지 시간을 가진 테이블의 테이블을 반환합니다. Returns a table of tables, each with the message string, message 입력, and timestamp of a message that the client displays in the output window.
참조하세요:
- LogService.MessageOut - 클라이언트에서 출력에 텍스트가 추가될 때 발생하는 이벤트
반환
이벤트
MessageOut
클라이언트가 텍스트를 출력할 때 발생합니다.
매개 변수
코드 샘플
Code and output
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)