Комментарии:
Veery nice system and great work! But it doesn't handle dynamic targets - how to handle targets that get destroyed. Will modify by myself and include some event system to handle that.
Ответитьthank you very much this tut helped me a lot. thanks again!
ОтветитьThere is an issue when the Target object is behind the player, the indicator is on the bottom left corner of the screen instead of on the bottom middle. Could you guide me on how to fix this? Thank you for the video
ОтветитьThank you!!!
ОтветитьAnother cool thing you can do is, instead of returning directly the new position, you can clamp it to a sphere shape. Here's how I'm doing it, but you can do it differently:
Vector3 vec = indicatorPos.normalized;
//Multiply the vector and your desired radius (I'm using the screen height)
vec *= canvasCenter.y - indicatorOffset;
//By default is a perfect circle, so I multiply the X axis to make it adapt to the screen (16/9)
vec.x *= 1.7f;
vec += canvasCenter;
return vec;
Hi, this is excellent, but I am stuck at removing a UI element after i destroy the target, after i destroy a astroid that is marked the circle stays on screen not sure how to grab that out of the array and destroy it as well, would love your help
Ответитьgreat video helped me alot!
ОтветитьIs there any way to convert this to use a world space canvas but with the same functionality? The reason is because I want to use something like this for Google Cardboard VR app, but it does not render Screen Space - Overlay canvas.
ОтветитьSo where do we put the TargetObject script? I feel like I'm missing something because this isn't working for me even though I literally copied everything word for word
ОтветитьFirstly thanks again for this tutorial, I have a issue about target position. UI indicator is moving when camera moved but not smooth, off screen indicator work correctly, but in view camera target UI indicator don't move by smooth when moving camera. I set it in FixedUpdate but there is something what I need?
ОтветитьHut ab vor deinen skills!!!! funzt leider nicht in VR =(((( ...auch wenn ich das canvas weiter vor setze, bleiben die indikatoren immer auf pos 0;0;0 ...obwohl im skript auf die canvas position referiert wird. Any ideas? danke trotzdem schonmal =)
ОтветитьLemme buy you a beer
ОтветитьWas good tutorial, thanks.
ОтветитьReally nobody recognises that it is working badly? Yes, it works correctly WHEN the user moved the camera just a bit away from the objects. But if I lock the Y movement of the camera, and only rotate the camera horizontally, then although the target objects are not moving vertically, the indicators will move. So when the object is behind you, it should show vertically it's still on the same position.
Ответитьthanks man
ОтветитьBig thanks, man, it helps me so much!
ОтветитьGreat work, dude👌
ОтветитьYou are missing the targetscript in your explanation but overall its a great tutorial! Thanks man !
Ответить