How to remove the icon displayed by Particle System in Unity - c#

I have a particle system in my Unity Android project and it is working very well. I wanted it to play only once so disabled looping.
Now the problem is once the particle system has finished playing, a weird icon as below appears on the screen.
Icon Displayed by Particle System
That does not look good. I altered my coding so that as soon as the animation is played, the particle system is taken off screen. But still that icon is displayed even though for a very very short period of time.
Does anyone know how to solve this? Please help me.
Thanks in advance.

That is scene view gizmo for particle system. It will not appear in the game view.
If you still don't want it. Disable as the screenshot by clicking on the icon in the Gizmos dropdown menu.

Related

Post-Processing not showing in game mode (Unity)

there!
I've just started using URP to use post-processing. I've decided to mess with bloom effect first. It seems to be working in Scene view, but when I enter Game mode bloom completely disappears.
Any ideas what causing this?
Are you sure you've enabled the Render Post-Processing tick on Camera Settings?
I enabled hdr in my URP settings and ticked the post processing check on the camera

How to fix "Unity transform position changes after build to WebGL"?

This is my first time to make a Unity project. Everything works well on the Game view in Unity Editor. However, after I built the project and played it on Google Chrome, I found that the position of some gameobjects had been changed.
Here is a more detailed explanation. The left is what I saw on the game view, which was perfect. The right side is what I saw after built the project. The position of the grey picture had been changed.
Does anyone know how to fix this?
ps.I am using Unity 2020.3.18 with WebGL platform
Try exporting again but with the same resolution as the game view. In this case you would want to export in a 400x600 resolution (You can also edit the "index.html" file to change and experiment with the resolution). The problem has to do with the fact that changing the resolution of the game can affect where certain objects are and how much you can see.

Scene design (color) changes after loading scene

I'm trying to make an FPS game using unity, but I've come across a problem. When I load my main scene after pressing "RESTART", it somehow causes my game to change appearance. But when I start the game from the main scene, it looks perfectly fine.. I've tried disabling Post Processing but I believe that's not what's causing the issue, I've provided some pictures of what happens when I load the main scene through the GameOver scene and when I load it through the MainScene.
Scene loaded through the press of a button ------Main Scene (what it's supposed to look like)
Your help is much apreciated
Ok, so after quite a while of messing around with the settings I FINALLY figured it out. To get rid of uneven lighting between the scenes all you have to do is go to Window>Rendering>Lighting>Environment> (make sure "Auto Generate" is UNCHECKED) and click Generate lighting!!!

Smaller Screen when Build and Run to Android

I am very new to unity and I'm making my first game, Snake. However, when I build and run it for android everything is very small and is hard to press. Scaling everything up works however when I press play everything is huge and some are out of the screen. Does anyone know why this is happening?
Thanks
Go to your UI canvas and to the canvas scaler, set it to "scale to screen size" and change the resolution to your prefered resolution.
canvas scaler

UI Image crashes Unity on play

I am creating a 3D game in Unity.
I want to have an image slowly fill up to make the cooldown of a skill visible for the player. Fortunately the UI image can do exactly that.
Unfortunately the UI image causes the engine to crash when I click play. The generic message "Unity stopped working" shows up too.
I created it by going to GameObject>UI>Image. Then I filled in the Sprite and the main camera. I did nothing else.
Removing the Canvas, Image and EventSystem (Which spawn when creating a UI image) fixes the crash.
Am I doing something wrong? I am very new to Unity.
EDIT: It turns out something in my code IS doing something to the image. However, I never in my code specify anything towards the image. I am using GUI elements though. Could that be the problem?
EDIT2: When running the Unity Debugger it gives me the error Couldn't set project path to: C:\Users\[MYNAME]\Documents\CellGame\Assets
I don't know what this means, as everything else is able to load from my assets
EDIT3: That doesn't seem to be the problem at all. What really is the problem is a line I'm calling. I'm going to try to figure out what in that line is causing trouble.
EDIT4: It turned out that there is a problem in my code. When I start my game, for some reason it detects that my player has no health, and goes to the Game Over UI. I had set this to just be the main menu UI, and when it toggles the main menu UI it also reloads the scene. Reloading the scene caused the crash, presumably.
The problem was that my script had a bug, where it would reload the scene as soon as I pressed play. With the UI image in my scene it caused Unity to crash.
I'm not sure why it crashed.

Categories