I am trying to make a NavMesh in Unity.
So when I look up any of the tutorials, they show / tell that you can simply make a plane for example navigation static, and then go to window -> AI -> navigation and click the bake button.
However, both the bake as well as the clear button stay grey and they are not clickable at all.
I cannot find an answer, so if anybody got an idea, ill be very gratefull.
Always make sure you are not in play mode!!
Related
I have created a simple Unity AR Foundation app which places objects on a plane whenever the screen is touched. I would like to add some UI so the user can press a button rather than anywhere on the screen.
I have followed several different tutorials which seem to be doing mostly the same thing. I right-click the Hierarchy -> UI -> Button. I have scaled it so it should fit my mobile screen and anchored it to the center so it should be easy enough to find.
These are the canvas settings:
Might the UI somehow be hidden behind the camera feed from the AR Session Origin -> AR Camera? Am I missing any steps to anchor the UI to the screen?
As you can probably tell, I am very new to Unity but I feel like I have followed the tutorials for creating a UI, but it simply won't show. If you need more information, please just ask and I will provide.
Not sure but sounds like you might need to have that Canvas Scalar to scale with the screen size. Change the UI scale mode to Scale with Screen Size.
I was compiling the wrong scene. I had two very similar scenes, so when I compiled I didn't realize there were no changes and that I was inspecting the entirely wrong scene.
Once I changed to the correct scene the setup above worked as expected.
I am trying to use the Stone Transition, but I want the image to slide in from the right to the left, the only transition available is "Slide Right" from the left to right.
It seems to me that most people, being right handed, will tend to click a right arrow to move forward. Likewise it seems more intuitive for an auto-slide to flow in the same direction.
I looked through the JS file, but couldn't make heads nor tails. I UnMinified it, but still no further headway.
Maybe I am missing it, but how can I reverse the direction of the Stone Transition - Slide Right?
OK, figured it out.
So the difference in this case, is that you don't use the preset transitions, but instead under the Slider Options, select the "InQuad" dropdown under "Ease". Play around with your Idle & Duration and you are good to go.
Hope this helps someone else
I'm trying to create a ScrollView with inside images, the images are the levels in the game, and when the user choose a level(a image), he can click the button (like "PLAY") so doing that change the scene to the level selected.
And another thig...how i can do to the images still in the center of the scroll view?
I think you are asking for how to do a scrollable list, covered in this tutorial.
Instead of putting buttons in it, you put your images in.
To detect clicks on the image, you add a script to your image containing the OnClick() method. (somthing like this)
I hope I could help you.
Maybe try to put little more effort in your research before asking questions.
I will remove this Question, because i found how to do it...
Btw for the second question, i just create a script which i can make move to the center all the images/buttons/objects. And if you don't know why i'm doing this, it's for create like an animation to show much easier what button/object are you selecting..if you see an image return to the center of the scrollview, you will know that is your image.
I know... I don't, explain well what i want..but i'm new in this world of programming..
My question is quite simple. I am learning Unity and watching a tutorial about making a 2D game.
In the tutorial, there is a Preview section at the bottom right corner. But in my Unity, there is nothing there. There is Inspector on the right and below of Add Component there is nothing.
Can anyone explain to me how can I activate that part? Thanks in advance!
This is what I want:
This preview box is for resources. It shows a preview of the resource. To get this to show up you must click on one of your resources(Like an image).
However when you do not have a resource selected it will not show up
Maybe this is a little too late but in order to get the model to show up:
Right click on the little model figure on the bottom right corner of the Preview window
Click on Select Other ...
Select my prefab
You should be able to hit the Play bttn to see your animation afterwards
FYI I'm currently on Unity 2019.2.17f1
In my IPhone application, I have five buttons with background image set.
At any time one button is active an the other one is inactive.
I want to display the five buttons in 3d style such that the active image is in front and the others are at the back but visible.
When the user clicks the inactive button, it should come to the front and the the other one should go back, with all the buttons rotating like 3d effect.
Can anyone suggest an idea?
Cocos2d might be worth a look, it is very good (and not to hard) to make fancy things like this. http://www.cocos2d-iphone.org/
Hope this helps.