Class · inherits TextChatConfigurations
ChatInputBarConfiguration
Configures properties of the default chat input bar.
About ChatInputBarConfiguration
Configures properties of the default text chat input bar. It is parented to
TextChatService.
Chat UI composition
The default chat UI is composed of two separate elements: the chat window
(message list) configured by ChatWindowConfiguration, and the chat
input bar configured by this object. Each element reports its own
AbsoluteSize and AbsolutePosition independently. To determine the total
screen bounds of the entire chat UI, combine values from both configurations
by computing the union of the two rectangles.
Properties 16
AbsolutePosition
: Vector2ReadOnlyNotReplicatedActual screen position of the default chat input bar in pixels.Read-only property that provides the screen position of the default chat input bar in pixels. Behaves similarly to
GuiBase2d.AbsolutePosition.This value represents only the input bar portion of the chat UI, not the entire chat interface. To get the total bounds including the message list, see
ChatWindowConfiguration.AbsolutePositionand combine both regions.AbsoluteSize
: Vector2ReadOnlyNotReplicatedActual screen size of the default chat input bar in pixels.Read-only property that provides the screen size of the default chat input bar in pixels. Behaves similarly to
GuiBase2d.AbsoluteSize.This value represents only the input bar portion of the chat UI, not the entire chat interface. To get the total bounds including the message list, see
ChatWindowConfiguration.AbsoluteSizeand combine both regions.AutocompleteEnabled
: booleanWhether to enable autocomplete for the chat input bar.Whether to enable autocomplete for the chat input bar. Set to
falseto disable autocomplete.BackgroundColor3
: Color3Background color of the default chat input bar.Background color of the default chat input bar. Default value is
Color3.new(25, 27, 29).BackgroundTransparency
: doubleBackground transparency of the default chat input bar.Background transparency of the default chat input bar as a number between
0and1. This value is multiplied with the user'sGuiService.PreferredTransparencyto create the effective background transparency used by the chat input bar, which may be more opaque than this value set here. Default value is0.2.Enabled
: booleanWhether to show the default chat input bar.Whether to show the default chat input bar. Set to
falseto hide.FontFace
: Datatype.FontFont used to render text in the default chat input bar.Font used to render text in the default chat input bar. Default is
Font.BuilderSansMedium.IsFocused
: booleanReadOnlyNotReplicatedWhether the default chat input bar is focused or not.Indicates whether the default chat input bar is focused or not. Useful for firing property changed events so you can implement callback functions that respond to changes in the input bar's focus state.
KeyboardKeyCode
: KeyCodeAdditional key users can press to trigger focusing on the default chat input bar.Additional key users can press to trigger focusing on the default chat input bar. Useful when you want to have an extra hotkey for focusing in addition to the / key.
PlaceholderColor3
: Color3Color of the text of the placeholder text in the default chat input bar.Color of the text of the placeholder text in the default chat input bar. Default value is
Color3.new(178, 178, 178).TargetTextChannel
: TextChannelA reference to the targetTextChannel.Determines which
TextChannelto use when the user sends a message with the default chat input bar.TextBox
: TextBoxReference to a designatedTextBoxinstance that sends messages on behalf of the user.Reference to a designated
TextBoxinstance that sends messages on behalf of the user. You can use it to further integrate your custom chat input bar UI into your experience by freely manipulating appearance, location, and layout. When opting to set this property to a customTextBox, you don't need to write any code for the following behavior:- When a user types a message and presses
KeyCode.Return, the message will be sent toChatInputBarConfiguration.TargetTextChannel. - When a message is sent,
TextBox.Textwill automatically clear.
For security, some limitations are imposed on the
TextBoxwhen it is promoted toChatInputBarConfiguration.TextBox. Luau code will not be able to:- Change the
TextBox.Textproperty. - Use the
TextBox.CaptureFocusorTextBox.ReleaseFocusmethods.
- When a user types a message and presses
TextColor3
: Color3Color of the text in default chat input bar.Color of the text in default chat input bar. Default value is
Color3.new(255, 255, 255).TextSize
: int64Size of the text in default chat input bar.Size of the text in default chat input bar. Default value is
14.TextStrokeColor3
: Color3Color of the text stroke for text in default chat input bar.Color of the text stroke for text in default chat input bar. Default value is
Color3.new(0, 0, 0).TextStrokeTransparency
: doubleTransparency of the text stroke for text in default chat input bar.Transparency of the text stroke for text in default chat input bar. Default value is
0.5.
ChatInputBarConfiguration also has every member of TextChatConfigurations. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.