How to use proximity selector and selector at the same time (with camera-perspective Mode)
Posted: Tue Oct 17, 2023 11:49 pm
Hello, I have a question about Selector, so I'm writing this.
I am now checking the difference between selector and proximity selector.
First of all, my current understanding is that the probity selector must have a collider, which should work as a trigger.
In addition, I understood that selector is useful when specifying contacts with a mouse pointer.
The questions that I have during the development are as follows.
1. Can't I use selector and proximity selector at the same time?
I want to make sure I can take advantage of both situations when I get close to the npc or click with the mouse.
When I put both scripts in the player and checked, it seems that the function of the selector limits some of the function of the proximity selector. For example, if a character's selector UI is activated with a mouse pointer, if you go close and press the space key, the conversation will work, but the selector UI by the proxy selector is not activated.
2. Currently, there seems to be a limitation of setting the camera mode to orthographic in order to utilize selector and proximity in Unity 2D.
I'm using perspective mode to give 2d games a three-dimensional effect. For example, making three-dimensional cars or castles made of paper, which are sold in supermarkets.
The problem is that if you set it to perspective mode, neither the selector nor the probity selector will function. It's possible to get closer and talk, but the logic with the selector UI enabled, starting with mouse recognition, didn't work at all.
How can I solve this problem?
I am now checking the difference between selector and proximity selector.
First of all, my current understanding is that the probity selector must have a collider, which should work as a trigger.
In addition, I understood that selector is useful when specifying contacts with a mouse pointer.
The questions that I have during the development are as follows.
1. Can't I use selector and proximity selector at the same time?
I want to make sure I can take advantage of both situations when I get close to the npc or click with the mouse.
When I put both scripts in the player and checked, it seems that the function of the selector limits some of the function of the proximity selector. For example, if a character's selector UI is activated with a mouse pointer, if you go close and press the space key, the conversation will work, but the selector UI by the proxy selector is not activated.
2. Currently, there seems to be a limitation of setting the camera mode to orthographic in order to utilize selector and proximity in Unity 2D.
I'm using perspective mode to give 2d games a three-dimensional effect. For example, making three-dimensional cars or castles made of paper, which are sold in supermarkets.
The problem is that if you set it to perspective mode, neither the selector nor the probity selector will function. It's possible to get closer and talk, but the logic with the selector UI enabled, starting with mouse recognition, didn't work at all.
How can I solve this problem?