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
Fields
action_text: &'a str
auto_localize: bool
clickable_prompt: bool
enabled: bool
exclusivity: ProximityPromptExclusivity
gamepad_key_code: KeyCode
hold_duration: f32
keyboard_key_code: KeyCode
max_activation_distance: f32
object_text: &'a str
requires_line_of_sight: bool
root_localization_table: Option<InstanceRef>
style: ProximityPromptStyle
ui_offset: Vector2
archivable: 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_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
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProximityPrompt<'a>
impl<'a> Send for ProximityPrompt<'a>
impl<'a> Sync for ProximityPrompt<'a>
impl<'a> Unpin for ProximityPrompt<'a>
impl<'a> UnwindSafe for ProximityPrompt<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more