i cant find or add specific components to my objects in unity - unity3d

I have been watching tutorials on youtube (i'm new to unity), I was trying to add a rigid body to my player, which I've never done. In the video they clicked add component in the inspector then physics then rigid body. but i don't see physics and when I search for it nothing appears. the only options i get are:
Effects
Layout
Mesh
Miscellaneous
Rendering
New Script
Underneath Box Collider i get a warning saying the the "module that implements this component type has been force excluded in player settings" could this be the problem? If so how would i fix it?
Thanks.

Try go to the PackageManager, switch to Built-In Packages and see if the package Physics is installed. Sounds like it has been actively be removed (uninstalled) or you somehow broke the Packages/manifest.json file.
If you can't even get the PackageManager try to reset the packages as described here via the top menu bar → Help → Reset Packages to defaults
or just directly replace your Packages/manifest.json with a one from a fresh empty project
Also note
Our first TECH stream release of the year is available as of today. Unity 2020.1 includes a wide range of features and improvements that make Unity workflows even more intuitive and make you more productive, while Unity 2019 LTS remains the recommended version for projects in production.
The PackageManager got an overhaul and a lot of users had issues like yours. See e.g. this thrread.
You should stick to the LTS versions, currently 2019.4 LTS (except for experimenting with the very newest features).

So if you type in the search bar of Add Component "Rigid" nothing pops up? If not I believe it should.
The problem could be in your libraries. Try deleting the library in your project (with Unity closed). Maybe if you have not made much progress in this project you could try opening a new unity project and seeing if it works.

Related

Colors missing when building my project Unity

I recently started implementing a cellular automaton in unity and now I'm trying to build the project but the colors, which got displayed in the editor demo:
are not displayed properly after building:
I implemented the color with:
CubeMeshes[cubeMeshesIndex][gen].GetComponent<MeshRenderer>().material.color = ColorsArr[color]
where ColorsArr[color] is e.g. Color.blue
My always included shader list looks like this:
What exactly am I missing?
Edit: I was able to solve this by running the script and checking which shaders are added on the material during runtime when i click on the instantiated object in the Hierarchy. For me it was the "standard" shader which I then added to the "Always included Shaders" list as the 8th option.
i have this error with all of my projects, and it has nothing to do with shaders. you just click on the gear icon in the top right corner of your player settings, and press reset. then, you can add the title and other options again, and it will work. good luck!
EDIT: maybe try resetting the graphics settings as well.

Buttons broken using new Input System

I've got a problem that is seemingly impossible to debug. My project originally started using 2019.2 and upgraded to 2019.3 without any problems. I then installed the preview package for the new input system.
This "disabled" all the buttons in that they are visible in the editor and during run time but they are impossible to click on or interact with.
To reproduce this issue I tried:
Creating a new empty 2D project
Installing and switching to the new Input System
Importing their demo scene from the package manager
At this point I tried running each scene. All of them worked except "SimpleDemo_UsingActions.unity".
I added a button to the "SimpleDemo_UsingPlayerInput.unity" and added a script to the button. With a function:
public void Button()
{
Debug.Log("Button Pressed");
}
I ran this scene and it worked! I could move around shoot the cubes that is built into the script and I could click on the button and it showed in the log.
For this reason I am stumped. I do not know how to debug this issue.
Can I have some advice? Has anyone had a similar issue or know how I would go about debugging this?
I managed to find the answer. For some reason using the new input system's "InputSystemUIInputModule" breaks all the UI and just does not work.
I fixed it by just deleting my EventSystem and creating a new one in the scene.
Do not. and I repeat. Do Not use the new input system's manager for the event system.
I write answer because it's first result in google.
To get rid of this, select EventSystem in hierarchy, then in inspector you should see warning and button to replace old input system with new.
Unity ver. 2019.4.1
Input System ver. 1.0.0
I'm still currently testing but I manage to get something by duplicating the defaultInputActions.inputactions file from the Packages >> Input System >> InputSystem >> Plugins >> PlayerInput.
I realized that that .inputactions has a UI Action Maps. I added more Action Maps and did some testing, the added action maps works and buttons are somewhat reacting as well.
Just sharing this now so that more developers can test this with me and hopefully find a way to work around this major issue.
Had the same issue. Make sure that the input system package, does not have any devices inside... It worked for me after migrating from the Previous Input System

No Tile Palette option available in Unity editor

The Unity documentation clearly shows Tile Palette available under Window > 2D.
But I don't have the option available:
Where can I access the Tile Palette menu?
I'm on OSX 10.13.6 and Unity version 2019.2.1f1
#AJP I was just having a similar issue using 2019.2 Personal.
I found that I needed to add the tile map package to the project, then "Tile Palette" appeared as an option under "Window".
To do this:
Go to Window > Package Manager.
Click 2d Tilemap Editor on the left of the pop up.
Then click install in the lower right hand corner (Install will be replaced with "Remove" once installed).
2dTileMapPackage
Update 2020/08/03
The issue is fixed in Unity 2019.3 and beyond, where the tile palette option shows up as expected on iOS, making it likely the issue was caused by a bug in 2019.2
As per AJP's own findings: Tile Palette is not available on Mac OSX. But if it was this would be a work around for any menu not showing up in the toolbar.
(I could only test this on windows, but I assume this works on a mac aswel, under the same locations.)
Under Edit there is the option "shortcuts". Go into this window and search for "Tile pallete". Click the Tile palette command and set your custom shortcut. You should now be able to open it without it showing up under the Window > 2D tab.
If it doesn't show up there either then my only guess would be that it isn't installed in your current Unity version (which appears to be the case on mac OSX)
If you're like me and no solution is working please READ THIS!
The problem is with Unity Hub and not Unity as a whole. I discovered this late late last night when I was reinstalling for the 5th time.
On my 5th install and reboot, I opened "Unity" instead of "Unity Hub" and sure enough there it was. I closed "Unity" and opened "Unity Hub" and sure enough when I booted into "Unity" it was gone. There is something wrong with the back end loading it would seem when loading from Unity Hub.
For a problem that seems to have plagued people for years. I'm shocked Unity developers haven't come across this solution and patched it.
You will have to install the according package like RobC and Jere already mentioned..
It's the same if you miss Sprite Editor.
You just have to install the according package which in your case is 2D Tilemap Editor
Window > Package Manager search for the according package,
in this case 2D Tilemap Editor.
If you miss the Sprite Editor the package to install is:
-"2D Sprite", I guess

Missing component tab in blueprint

I can't find the component tabs anymore. It shows here that the component tab is opening but actually it isn't. I've cleared all the window but this tick of components tab still exists. Now my code is broken and I can't link the new tank barrel to the Tank_BP blueprint class. What should I do? Try resetting layout and even reinstall Unreal but it still didn't work. Any help will be appreciated!
Screenshot
Are all actor blueprint editor view all the same as you described? Did the log report some errors about that?
I think maybe there is something wrong with your editor, several ways to solve youre problem:
+ If you are using the installed version(which is installed from Epic Games Launcher),just try to use verify to repair your editor.
verify entry
If you are using the compiled version, just try to debug the blueprint editor module.

Anybody experiences problems in contextual menus behavior?

Dear RubyMine Overflowers,
I downloaded the latest version of RubyMine (3.2.1) on a Mac running SL 10.6.8 and latest apple provided Java.
I am experiencing some problematic behavior regarding the mouse right-click.
I can bring up contextual menus only by double right-clicking. if I single right-click, the menu comes up very instantly and disappears.
After some experimentation, I have concluded that if I right-click and manage to keep the mouse pointer at the exact pixel as before r-clicking, contextual menu disappears. If the pixel before right-click is different than the one after r-click the Contextual menu stays. (Imagine the chaos when this applies to the Project window: i get constant warnings of moving files).
Anybody experiencing such funny stuff in RubyMine? or otherwise, any way to change mouse pointer sensitivity?
Many thanks...
Petros
There is similar issue, but it's known to affect only Linux users with Eclipse keymap:
Intellij right click context menu problems in Ubuntu.
I can't reproduce it on Mac, but the question above is worth checking, maybe the suggested workaround will work for you.