Category "unity3d"

Can't open unity projects on new laptop. 'No valid unity editor license found. Please activate your license.'

Hi, I sold my PC with hard reset, so no unity on that, I have another laptop with unity on it, signed into the same account. I bought this laptop, installed win

Audio not playing after calling .Play()

I have an AudioManager for my Game. When I try to play a clip on a NPC it doesn't get played. The script itself works because the background music is playing pr

Black screen Unity AR Foundation - camera not working

Cannot use the camera for an AR Unity App. When launching the app on an iOS device, the screen is totally black. I'm running Unity version 2021.3

Why do certain sprites ,look as if they're further back in the window?

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

Can Unity handle perfectly multiple render of differents sizes of the same picture?

If I have two pictures slots in my game, one displayed as an icon and one displayed as the full image. Should I have two differents pictures in my Resources fol

Unity3D New Input System: Is it really so hard to stop UI clickthroughs (or figure out if cursor is over a UI object)?

Even the official documentation has borderline insane recommendations to solve what is probably one of the most common UI/3D interaction issues: If I click whil

check list of gameobject has active gameobject and insert into other list

i have a list of gameobject and I would like to check if each of those is currently active in the scene. The following is my code. foreach (GameObject hazard in

Animations problems c# unity

I've been trying to create a game on unity and while I was trying to do the animations I'm realizing that I don't have any idea why my code is not working. //An

Calibrating a gyroscope for different "flat" positions, then extracting x and y tilt

I have a top down 2D ball game like the old Labyrinth ball game. My game is played on a mobile phone. The user controls it by tilting the phone. The idea is tha

How do you fix this error: A namespace cannot directly contain members such as fields or methods [closed]

I am using unity code to make a game, and I get this error: "A namespace cannot directly contain members such as fields or methods." This is

Remote Machine IP disappears when entering Play Mode (Unity/Hololens)

I'm working with an XR Unity project (2019.4.26f1) and I'm trying to deploy it on the HoloLens 2. I've managed to build the project and to run it in the HL from

How to find where an object is located in a list?

i have a list "players" and i want to find if my player is players[0] or players[1] or whaterver. How do i do this?

Create A DLL to work on a solution targeting Master ARM64? (Hololens 2)

I develop applications targeting the Hololens 2 platform (mixed reality). The general idea of the application I am trying to build is using a point cloud regist

Slowmotion time limit

I made a player in my game, such that it goes into slow-motion when you hold down the space bar. But I want the player to only be available to be in slow-motion

Character is jittering after adding falling function

Let me just preface my question by saying I'm quite new to unity and programming as a whole. However I've been experimenting with some movement and after adding

How do you initialize reference type class properties in a nullable context in Unity?

As you are supposed to use the Start() or Awake() methods instead of the class constructors in Unity to initialize your class properties, VisualStudio complains

Sharing screenshot with link to facebook unity

I want to share a screenshot and link to Facebook. But I am not able to find anything, it seems Facebook has deprecated the functionalities. Correct me if I am

Instantiating an object to the position of another vector, hoping to change Y-axis in the code

I have enemies spawn by instantiating them and having them follow a straight path along the X-axis. When instantiated, I want some variability in their height t

Could not find a working python interpreter. Unity, Firebase

Could not find a working python interpreter. Please make sure one of the following is in your PATH: python python3 python3.8 python3.7 python2.7 python2 I insta

How to change linerenderer color at runtime?

The default color now is mixed of colors with the default material : I want that at runtime or before running the game if i set the mode to None set the whole