Skip to main content

Questions tagged [unity-game-engine]

Unity is a cross-platform game engine by Unity Technologies. Questions should be about programming with the game engine and not usage of the graphical interface. Questions about the usage of the graphics interface are off topic.

unity-game-engine
0 votes
0 answers
4 views

How to instantiate and create a new GameObject with UdonSharp in VRChat SDK?

I'm currently writing a script in UdonSharp using VRChat Creator Companion and VRChat SDK to shoot a ball from my hand, but I get a compile error and cannot get it to work. Is there a way to create a ...
user8432029's user avatar
0 votes
0 answers
10 views

Unity project - xcode 13 Undefined symbol error

I have a problem. I've been trying for a long time I made a game with Unity and it is available on Googleplay. There is no problem on the Android side. Everything works smoothly, including Admob and ...
Emre BORAN's user avatar
0 votes
0 answers
17 views

Strategies for optimising performance in large Unity open-world games

I'm currently developing an open-world game in Unity and facing a big problem in performance. It is with large, detailed maps. As the player works in the environment, the frame rate drops, mostly in ...
kiruthikpurpose's user avatar
0 votes
0 answers
12 views

Unity HDRP Additional Camera Affecting Scene Lighting and Colors Issue with Volume Mask (Unity 2022.3.36f1)

I'm encountering an issue with an additional camera affecting the lighting and colors of my scene in Unity 2022.3.36f1 using HDRP. I've imported an HDRP sample scene and added a new camera ...
yuni's user avatar
  • 1
-4 votes
0 answers
32 views

How can I edit my code so then my player will not just move vertically, when I want it to go horizontally? [closed]

When I played my game, the player moved straight up, with me being unable to keep control. Would it be fixed if I removed the code for vertical? And if so how would I change the code so no other ...
Adeline Haun's user avatar
1 vote
0 answers
17 views

Enemy teleporting between across the y axis, when it's under me while I'm on a platform, it teleports up the platform

I don't know if it's something with the AI, the navmesh, or maybe a missing nav component but the enemy I made instantly teleports to me when I'm above it instead of simply going up the stairs. It is ...
Big Glasses's user avatar
0 votes
2 answers
48 views

How can I fix my movement code? The player won't move correctly

I am new to coding and c#, but I have been trying to make my player without gravity affecting it. But my player keeps moving up and doing nothing else. I have started by trying to make it move to the ...
Adeline Haun's user avatar
-1 votes
2 answers
39 views

Is there any way to check if a KeyValuePair<string, int> contains a specific Key in a Dictionary in one line?

In my code I have a Dictionary, which at first was just <string, int>. However, I needed a way for two things with the same string to be separate elements in the Dictionary, so I made the Key ...
polelord's user avatar
0 votes
1 answer
29 views

Character does not move in Unity

I wrote the code in Unity hoping that the character can move in all directions in two dimensions if I press the direction key. (If I press the shift key, it moves fast.) However, after writing the ...
codebetatester's user avatar
0 votes
0 answers
11 views

Unity New input System: Overlap problem between the PrimaryTouch[touchscreen] and GUI elements

In a tablet game, in an New Input system Action map, I placed an aiming command conveyed by PrimaryTouch[touchscreen], next to other commands conveyed by gamepads, and buttons on the screen. The idea ...
Daniele Pomilio's user avatar
-2 votes
0 answers
17 views

The type or namespace name 'XR' does not exist in the namespace 'Unity' (are you missing an assembly reference?) [closed]

i have just creating unity AR project with unity editor version 2021.3.31f1 and vuforia version 10.24.4. however, when i imported vuforia packages into unity there was an error saying : "The ...
Hafizh Zaldy Alviansyah's user avatar
0 votes
1 answer
35 views

Unity 3D - Raycasts wont register in time if player has high enough velocity

hope someone here smarter than me can figure out my mistake. I have a simple platformer game using raycasts to check if you’re standing on the ground. I tried colliders, but started using raycasts to ...
Madswint's user avatar
0 votes
0 answers
23 views

Disable Rider performance inspection warning for a particular method

I've begun using Rider for my Unity project and its displaying performance warnings for methods that are unavoidable such as Debug.Log() and Debug.LogError(). Selecting "Disable performance ...
WongWray's user avatar
  • 2,546
0 votes
0 answers
42 views

Maze in Unity - calculating shortest path and changing material

The problem seems to be that for some reason the ApplyMaterial only goes to the target cell and does not even try to change the materials of the other cells accordingly. I want the solver to find a ...
SpaceNugget's user avatar
0 votes
0 answers
15 views

Singleplayer camera works, but Multiplayer camera not following and movements not synchronized between the clients

I am following a tutorial to make my Coursework and when I implement CameraTracking.cs it works on Singleplayer, but it doesn't work on Multiplayer. When create room and start the game the camera stop ...
Nikolay Mihaylov's user avatar

15 30 50 per page
1
2 3 4 5