学习
引擎类
TextChannelWindow

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处。


摘要

继承成员

API 参考
属性
Target
读取并联
功能: UI, Chat
TextChannelWindow.Target:TextChannel

FontFace
读取并联
功能: UI, Chat
TextChannelWindow.FontFace:Font
代码示例
自定义文本频道窗口字体
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
local window = Instance.new("TextChannelWindow")
window.Size = UDim2.fromOffset(400, 300)
window.Target = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
-- FontFace 仅在 UseDefaultFont 为 false 时应用
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGui

UseDefaultFont
读取并联
功能: UI, Chat
TextChannelWindow.UseDefaultFont:boolean
代码示例
自定义文本频道窗口字体
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
local window = Instance.new("TextChannelWindow")
window.Size = UDim2.fromOffset(400, 300)
window.Target = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
-- FontFace 仅在 UseDefaultFont 为 false 时应用
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGui

©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。