Struct roblox::instance::ProximityPrompt[][src]

pub struct ProximityPrompt<'a> {
Show 33 fields pub action_text: &'a str, pub auto_localize: bool, pub clickable_prompt: bool, pub enabled: bool, pub exclusivity: ProximityPromptExclusivity, pub gamepad_key_code: KeyCode, pub hold_duration: f32, pub keyboard_key_code: KeyCode, pub max_activation_distance: f32, pub object_text: &'a str, pub requires_line_of_sight: bool, pub root_localization_table: Option<InstanceRef>, pub style: ProximityPromptStyle, pub ui_offset: Vector2, pub archivable: bool, pub class_name: &'a str, pub name: &'a str, pub parent: Option<InstanceRef>, pub roblox_locked: bool, pub source_asset_id: i64, pub prompt_button_hold_began: RBXScriptSignal<Option<InstanceRef>>, pub prompt_button_hold_ended: RBXScriptSignal<Option<InstanceRef>>, pub prompt_hidden: RBXScriptSignal<()>, pub prompt_shown: RBXScriptSignal<ProximityPromptInputType>, pub trigger_ended: RBXScriptSignal<Option<InstanceRef>>, pub triggered: RBXScriptSignal<Option<InstanceRef>>, pub ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>, pub attribute_changed: RBXScriptSignal<&'a str>, pub changed: RBXScriptSignal<&'a str>, pub child_added: RBXScriptSignal<Option<InstanceRef>>, pub child_removed: RBXScriptSignal<Option<InstanceRef>>, pub descendant_added: RBXScriptSignal<Option<InstanceRef>>, pub descendant_removing: RBXScriptSignal<Option<InstanceRef>>,
}
Expand description

The ProximityPrompt Instance Class

View Roblox documentation

Fields

action_text: &'a strauto_localize: boolclickable_prompt: boolenabled: boolexclusivity: ProximityPromptExclusivitygamepad_key_code: KeyCodehold_duration: f32keyboard_key_code: KeyCodemax_activation_distance: f32object_text: &'a strrequires_line_of_sight: boolroot_localization_table: Option<InstanceRef>style: ProximityPromptStyleui_offset: Vector2archivable: bool

Inherited from Instance

class_name: &'a str

Inherited from Instance

name: &'a str

Inherited from Instance

parent: Option<InstanceRef>

Inherited from Instance

roblox_locked: bool

Inherited from Instance

source_asset_id: i64

Inherited from Instance

prompt_button_hold_began: RBXScriptSignal<Option<InstanceRef>>prompt_button_hold_ended: RBXScriptSignal<Option<InstanceRef>>prompt_hidden: RBXScriptSignal<()>prompt_shown: RBXScriptSignal<ProximityPromptInputType>trigger_ended: RBXScriptSignal<Option<InstanceRef>>triggered: RBXScriptSignal<Option<InstanceRef>>ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>

Inherited from Instance

attribute_changed: RBXScriptSignal<&'a str>

Inherited from Instance

changed: RBXScriptSignal<&'a str>

Inherited from Instance

child_added: RBXScriptSignal<Option<InstanceRef>>

Inherited from Instance

child_removed: RBXScriptSignal<Option<InstanceRef>>

Inherited from Instance

descendant_added: RBXScriptSignal<Option<InstanceRef>>

Inherited from Instance

descendant_removing: RBXScriptSignal<Option<InstanceRef>>

Inherited from Instance

Implementations

Creates a new ProximityPrompt object.

Equivalent to Instance.new(“ProximityPrompt”) in Luau.

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Inherited from Instance

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.