range that can be spoken to

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

range that can be spoken to

Post by fuakda »

"Custom position" is meaningless.
Where and what is the basis for setting custom positions?
I want to approach an NPC and press a button to talk to it.



Below is an excerpt from the manual.
CustomPosition
Vector3 PixelCrushers.DialogueSystem.Selector.CustomPosition
getset
Gets or sets the custom position used when the selectAt is set to SelectAt.CustomPosition.
You can use, for example, to slide around a targeting icon onscreen using a gamepad.
The custom position.
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: range that can be spoken to

Post by Tony Li »

Hello,

Custom Position allows you to set the selector's raycast position in code instead of using the built-in options (center-of-screen position or mouse position).

However, to accomplish what you want, I recommend using a Proximity Selector instead. Please see the Interaction Tutorial for video instructions.
Post Reply