Sprite not location when I click on the inspector window in Unity - unity3d

When I click on the file name or sprite on the inspector window it should locate the file/sprite in project window with a yellow background. But when I am clicking on it, it is not locating the sprite as well as file. Can anyone help me?

First, be on the Project Tab:
Then, click on the Text, or the image if the pop-up is open.
It should locate the file in "Project" Explorer.
This won't work if the file is not in your Project Hierarchy. Unity Default Meshes (primitives like Cube, Sphere...) for example cannot be located.
Make sure that you have only one "Project" window open and that it's not locked:
If that doesn't work, try restarting Unity or reset the Layouts:
Good Luck!

Related

When I drag a UI button to prefabs it doesn't add child component

I want to make a prefab of UI Button with it's text. I created a prefabs folder and when I drag my button to the project's prefabs folder, I can't see the text as shown in the tutorial I'm following. I want to change the text of every button I created that is connected to that prefab.
I don't know what tutorial you are watching but it seems to be for an older Unity Version.
I can see you are using Unity 2019 and back in Unity 2018.3 they added Nested Prefabs. Also see the Prefab Manuals.
They work a bit differently now.
You don't directly edit Prefabs anymore but rather either double-click it in the ProjectView or in the Hierachy click on the little arrow > next to it in order to enter the Prefab Mode or since you already selected it in the ProjectView simply hit Open Prefab in the Inspector
This opens your prefab as if it would be a Scene in the hierachy and now you can edit everything in it.
Alternatively simply make your changes in one of the instances in the Hierachy (current Scene) and then apply them back to the prefab as explained in Editing a Prefab via its instances
either for each changed property via right-click
or for all proerties of the entire component via the Override dropdown ont he top-right
This is as its intended to work, in order to see insides of a prefab either open it in the editor or place on scene

Why is the game scene empty when I press "play"?

I'm trying to open up a game demo from my class to see what it looks like, but after opening up the project in Unity, going to the "Game" tab on the upper part of the screen, and pressing "play", nothing shows up. I'm new to Unity so I have no idea why the screen is blank (there should be a title screen that says "Traffic Jam" and a play button). I'll attach a screenshot of my workspace below.
Note: I read somewhere about changing the "Layout" dropdown option in the upper right corner to "Default", but even if I do that, the title screen doesn't show up correctly.
Here is a link to the project if you want to try it out yourself:
https://drive.google.com/file/d/1ekXt948b612dmyT1AZReUOuzh2XbnSDG/view?usp=sharing
UPDATE: I've now opened the scene and have all the objects displayed, however some things still don't seem to be quite right. The title of the game is not shown when it should be and although the "play" button is shown, clicking on it doesn't get the game started as it should.
You should open the scene you are highlighting, by double clicking. You can also open the unity project by double clicking the scene directly from windows explorer.
When unity has opened that scene, this is what you will see.
And this will then be your game view:
This is what happens when I click play and die.
After opening a Unity project, ensure you are also opening the correct Unity Scene.
Most Unity project usually contains multiple Scene files which will have different contents.
I can see in your Project tab that you have a Unity scene file which is not currently open, if you double click this it should take you to your scene.
I can tell that this is not open as the Hierarchy would show the name of the currently open scene instead of 'Untitled'.
If this file does not contain the items you are looking for you should check other folder in your project for Unity scene files (did you save it as something else?)

I can't close the Inspector window in unity3d. The Close Tab option is disabled. What can i do?

I played around with the windows Game, Scene, Hierarchy...Then the Inspector is all over the editor and i don't have the Close Tab option. I tried to close and load the unity editor again but it didn't help. Once i'm loading the project or the scene file i'm getting: I also tried to create a new complete project but still what i see is this:
See the Layout dropdown at the top right of the window (right below the X close button)? Click it, select "Defaut", there you go.

unity 5, how to open saved scene?

when I start a new unity 5 2D game. By default, it has scene, game and asset Store tabs. I saved the scene and named it to movementStaging, then closed the scene tab. Now i cannot open it again. I right click on it, and choose open. nothing happens. how can I get the scene tab back?
Right click on another tab ->Add tab -> Scene. Then double clicking on the saved scen should open it in the scene tab. Also restarting unity helps most of the times. You can also try Window -> Layouts -> Default
Another option would be to reset the Window-Layout settings to default.

Files get opened in wrong editing area

my Eclipse Juno SR1 somehow got screwed up. It seems I have a new area, and if I interpret it correctly, it is called the "Shared Area" (only from a tooltip). I cannot get rid of it by conventional means (i.E. closing/hiding). All files I open now are opened in this shared area, not in the area my files were opened before. The area is distinct from the normal editing area in that it will not go to the same place (top right, under the menus).
The area has only maximize and minimize buttons. Maximizing it will maximize it over everything, this would be expected. Minimizing it actually hides it, but opening an existing file will bring it back as kind of a popup over the eclipse file list.
I do not seem to find how I activated this feature, and I cannot seem to find any activation instructions in the Eclipse help (the help looking for "shared" and "area" separately doesn't really help anyway).
I just want this feature/window/perspective to go away and let me open files like I used to. Any tips?
Edit: Maybe this area is not called "Shared area", this could be wrong. If not, it doesn't seem to have any name. It just forces all editors opening new files to open in it, and not in the area that they usually open in. The way I determined it was called "Shared area" is by minimizing it, then opening a file. It opens as kind of a popup (described above), and there's a menu bar attached with 2 icons, "Restore" and "Shared area", which is pre-selected.
This is the are "docked" to the right:
This is the area docked below:
The area is not dockable in the way that it docks to certain areas of Eclipse, but stretches (when dragged) over the whole Eclipse Window and even outside of it.
You should reset the perspective Window -> Reset Perspective...
The shared area is the default location to open files. The files remain open in the shared area across different perspectives such as Java and Debug so that you can switch between them while working on the same files. You'd generally drag a file outside the shared area to work on it without it appearing in other perspectives.
It's hard to position the shard area view by dragging it, but you can drag the surrounding views in place around it to get it where you want.
I click on the bottom corner of the offending tile and dragged in till it closed! The "reset perspective" did not work for me but the draggin to a smaller size as if it were a picture did. Hope this helps.
If nothing works out for you, simply go to window -> new Window. Opens up a fresh copy of eclipse with everything loaded up. Even on a restart,loads up like normally it would.
I think I know what you mean. If you drag any view to that "Shared Area" but not to the body but to the header (where the title is supposed to be) the dragged view will occupy completely that "Shared Aread".
Hope that helps.
Here's what worked for me:
Menu > Window > Perspective > Open Perspective > Other > Java(default) > Open
Now I can create a new class that shows on the tab next to my working tab.
Ctrl+Shift+{ to toggle it on or Off.
Ctrl+Shift+W to close both of the area.