I'm creating a 2D game. It was configured as a 2D game since it was created.
When I selected a GameObject, in the scene their anchor, their size and their pivots were pointed out.
Suddenly this has changed, and it appears like if it were a 3D project, with a circle and all the axis around it, whatever GameObject I select. (Pic below)
How can I configure my Unity Editor to be like before? Maybe is worth it to say that in the top toolbar of Scene window there's still 2D mode selected:
Version: Unity 2018.3.14f1
You've set the Rotation Tool. I think you were using Move Tool before.
It's just a matter of which gizmo you see in the scene.
You may just press "W" on the keyboard.
Or press the Move Tool (first one in the images).
Further info on Unity Tools.
Related
I am learning how to make games using unity, i have used free sprite packs from unity's store.
i have selected each individual sprite and changed its z position to 0, but when the game runs it looks completely different to how it looks in the editing window.
please help.
Here is a video I recorded.
https://youtu.be/2hb9m01PQBk
Are your sprites on a prefab, or children of another game object? The Transform of the parent object affects the transform of all children.
It looks like this is a camera problem. Your camera is set to perspective, it is possible to do parallax backgrounds with a perspective camera and you may have already accomodated for it, but that is the first thing I would check.
You can modify this by going to your Main Camera and selecting Orthographic from the Projection drop-down menu.
I have an AR app, where I want to have a plane with text on it, that is always shown when using the AR-Camera.
The Programm only uses the AR-Camera. The Plane doesn´t show up at all so far, even though it does in the preview.
The Plane doesn´t show up anywhere in the AR environment.
I don´t really know what to add since I think the question is simple. If you need further details just let me know.
Little Update: After the start of the app and after the Unity Logo shows up, the screen is black for a few seconds and during that time I can see my Panel on the black background. As soon as the AR-Camera is activated, the Panel is gone.
Here is how to do it in 3 simple steps:
You need to add a Plane object to your Unity's scene
You have to align the Plane in the view of your main Camera's object, to your liking
You have to set the Plane as a child of your Camera's object by simply dragging your Plane entry to Camera entry in the Scene Tree Editor Pane (located in most cases on the left side of your Editor's window)
I've been using Unity with the 2D Animation package for rigging my multi layered sprite. It worked like a charm, rigged the thing, created my animations but.. all the sudden the gizmo showing the bones in my editor disappeared :(
I fear it happened when updating Unity to 2019.2.12f1 but cannot guarantee
This is what I see:
The bones ARE there, I can move them and I can animate them, but I cannot see the gizmo for easy manipulation :(
In the past it did look like this:
Where one can drag and drop easily the bones and rotate them
This is how my layers look like in the editor:
The bones are in the Player layer
Any clue ??
Simply select all the "bone" GameObjects, go to the Inspector and choose a gizmo from this menu
The ones in the first row additionally show the objects name in the SceneView:
If you already did that but they are still not showing up make sure
you have the Gizmos enabled at all
The Gizmos size is big enough
If the size is too small the Gizmos are faded out if you are too far away!
If the "bones" use a specific component which defines the Gizmo you an also check in the Scripts and Built-in Components lists whether the according type's Gizmo was maybe disabled.
Some other tries:
go to the Inspector of a bone and make sure the according component(s) is(are) not folded.
make sure there are no hidden layers in your scene (top right in the editor)
Gizmos are not shown if the according layer is "hidden"
For further options see the Gizmos Menu
I have problem with Unity prefabs. Every time I create a nice looking UI in main scene and I want to store it as prefab for later usage if I open this prefab it's deformed(random cliping, moved UI elements in different directions, ... such a mess). If I try to fix this prefab in prefab editor to make it nice looking like before and then if I insert this back to scene it's totally unusable. It creates bigger mess than before in prefab editor... I don't know what to do. Editor throws no errors btw.
In first image is nice looking UI(example already created). In 2nd image is prefab editor. Text is totally out of panel and 3rd is from back in scene (means removed old one UI and place stored prefab from folder) the panel is gone.
Imgur - images are orded by scene to prefab editor and back to scene
On those images you can see a 3 elements... but if I make more complex UI, it's clipping through each other in prefab editor and also back in scene.
Unity version: 2019.1.7f1
I can't move, rotate or scale Objects. Why is this?
Note: I am using Unity 4.
From the Screenshot you posted, you are clearly in Pan Mod:
You need to be in Move Mode to move Objects, Rotate Mode to rotate objects, Scale Mode to scale Objects and RectTransform Mode to modify Canvas and UI Object RectTransform.
Move Mode:
Rotate Mode:
Scale Mode:
RectTransform Scale Mode:
I also noticed that you only have the Game View. You should have both Game and Scene views. You need to be in the Scene View in order to move,rotate or scale an Object.
Reset your layout then you will have Scene View. You can use the image below to see how to do that.
You can find more about this here.
I came here from a similar, but different problem. Every time I clicked a tool, it would jump back to the the Pan tool. Couldn't even select the other tools and there were no tool widgets in the viewport.
Turns out it was because I was using ProBuilder add-on and had left it in edge mode rather than object mode. Switching back to object mode solved it immediately.
Just in case someone else comes here from the same frustration as me.
On my Mac, caps lock would prevent most drag features, including this.
Either press G, or click the 3D cube icon circled in the screenshot below:
I find that Unity always cancels the selection. I don't know why, but this always works for me.