Category "unity3d"

Unity C# finding GameObjects using tags

I am just starting out with Unity and C# and i am trying to make an enemy chase after the player. For the enemy to find and chase the player i am using the foll

Find which script is activating the object

There is a disabled gameobject in the scene. When i started the game that gameobject becomes enabled somehow. How do i find which script enables that object?. I

Unity C# : Destroy object when a new scene loads

currently I have a timer that has DontDestroyOnLoad function in order for it to cycle through scenes that needed a timer, my question is how can I destroy my ti

How to change collider in individual tile in tilemap

I am using tilemap in unity for level building. I need colliders on my tiles. If I add a tilemap collider to the tilemap it generates a collider around the tile

UnityEngine.UI not recognized by vs code and vs community [FIXED]

So i updated my unity to 2021.2.3f1, and vs code and vs community doesn't recognize UnityEngine.UI, i've tried: reinstalling Unity Hub, reinstalling vs code and

Is there a way to apply bloom to a specific object?

I've currently noticed that, if i uncheck the "is Global" checkbox on the Bloom Effect of a Post Processing Volume, even thought I adjusted my layer to affect o

Collider not working after changing object scale

In my 2d game, no collider is working after changing it's scale. My Spaceship/Sprite is surrounding with Box collider 2D. Now I want to use border and that's wh

Unity Gradle Build failed while trying to build project as an APK (2019)

I have a really big problem. I wasted many hours with trying to build a little game i made as an APK. I switched the build platform to android, installed the JD

The new Input System doesn't trigger anything anymore

This post is shamelessly a copy/paste from my post on the Unity Forums : https://forum.unity.com/threads/input-system-doesnt-trigger-anything-anymore.717386/, b

Writing and reading using socket

This is my code using UnityEngine; using System.Collections; using System; using System.IO; using System.Net.Sockets; public class s_TCP : MonoBehaviour { in

Creating Rope Physics for Unity

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with v

How to make a Unity plugin support old versions of Unity?

I'm developing a plugin for Unity. Say, on my machine I have the most recent version of Unity installed (right now it's 2019.1.8). However, I also want the plug

View a Class from the Unity API

I am rendering my camera to a cubemap using gameObject.GetComponent<Camera> ().RenderToCubemap (cm); I want view the code for RenderToCubemap(), so I c

How to set up Firebase Push Notification with Deep Link with Unity3D

I am implementing Firebase Cloud Messaging to send Push Notifications to my Unity Project for Android and iOS Devices. I am now Debugging with Android. I receiv