Hello
I have been trying to set up my Pick Ups Objects, the problem that when it detects two screen taps it immediately drops them.
I leave a sample video and my current settings in one blog
https://blogsadventurecreator.blogspot.com/2023/03/pickups.html
https://blogsadventurecreator.blogspot.com/2023/03/pickups.html
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
By two screen taps, you're referring to two fingers touching the screen simultaneously?
What are your AC and Unity versions, and does this occur if your second tap occurs in the game view, as opposed to the on-screen joystick?
Please also share high-res images of your Settings Manager and PickUp's Inspector.
I believe I've recreated the issue.
If you open up AC's HeldObjectData.cs script, try replacing line 41:
with:
Does that fix the behaviour?
Hello
I entered line 41 as you mentioned, but I get the following error in console "error CS0122: Player.InputTouchCount() is inaccsessible due to its protection level"
What other script would I have to modify?
Unity 2021.3.12f1
AC 1.76.3
Hello again
I went through the playerinput script and converted some protected voids to public, the problem of the pickups being dropped is now solved and I'm happy about it.
Thanks for the details.
Apoligies - yes, PlayerInput's InputTouchCount will need to be made public. I shall make this change to the next release, however.