Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Displaying a coordinate grid and markers on the globe in Unity

Please help me with the Earth model in Unity. I don't understand what's wrong. I downloaded the blue marble texture from the NASA website, attached it to a Material, and placed it on a sphere. I want ...
Андрей Ковынёв's user avatar
0 votes
0 answers
26 views

Vuforia 11.3.4 error — ARTrackablesChangedEventArgs not found when using AR Foundation 5.2.0 (Unity 2022.3)

I’m working on an AR project in Unity 2022.3 using Vuforia Engine 11.3.4 and AR Foundation 5.2.0. When I try to build or play in the editor, I get the following compile error: Library\PackageCache\com....
noura selmi's user avatar
-3 votes
0 answers
52 views

Grayscale with colors [closed]

I'm new to unity and I want to make a shader that will make the colored world black and white (in shades of gray), preferably by lowering the saturation to 0, but I also want to introduce 2 colors ...
soomrak 1's user avatar
1 vote
0 answers
38 views

Images not appearing on a scrollable container [closed]

I have a PlayeHUD, where I want to add a container with a fixed size for "Relics", and to allow horizontal scrolling when there are too many Relics. But the relics, that are inside my ...
Henrique Pombo's user avatar
Best practices
0 votes
4 replies
92 views

How to properly implement target requirements in game?

I'm a self-taught beginner learning through trial and error. I'm working on a card game in Unity (C#), and I'm trying to design a clean and extensible system for validating targets during gameplay. ...
Parkhomovsky Oleksander's user avatar
0 votes
0 answers
47 views

Need help making enemies look at the character or attack point [closed]

I am making a movement script for enemies and want their to be two targets. One being the attack point and the other being the player. Ive made working movement where the enemy switches from the ...
ThePheonix's user avatar
Advice
0 votes
0 replies
62 views

Text-to-Speech function in a 3D Unity game

I am doing a 3D game using a Unity, and I need my NPC can communicate with the players with voice I want my NPC can speak with a voice that response is generated by the LLM, so the response will ...
Alden Ling's user avatar
0 votes
1 answer
39 views

My Unity project cannot see a trigger event [closed]

This seems to be a common problem. What are the typical issues? private void OnTriggerEnter(Collider other) { print("Trigger door about to invoke\n"); OnTriggerEnterEvent.Invoke(); ...
Jiminion's user avatar
  • 5,170
1 vote
1 answer
68 views

Saving Movement Data as a CSV File in VR Headset (C#/Unity)

I'm working on a project where I want to collect movement data (X/Y/Z position and rotation) from a VR headset (a PICO Neo 3 Pro Eye) using a C#/Unity script, and export it as a CSV. I have a script ...
sam's user avatar
  • 21
0 votes
0 answers
61 views

OnMouseDown() not working — object not destroyed on click [duplicate]

I created a square GameObject named "Target" and added a Box Collider 2D component. Then I wrote the following C# script: using UnityEngine; public class ClickToDestroy : MonoBehaviour { ...
Neely Lee's user avatar
0 votes
1 answer
98 views

I can't figure out why the enemies are spawning outside the rooms

I've been trying to fix this issue with my code for a while now but I can't seem to figure it out. For some reason, the enemies can still spawn outside of rooms, but they won't ever spawn outside of ...
G-Dawg's user avatar
  • 1
0 votes
1 answer
94 views

I need help fixing this crouching bug

I'm currently struggling to understand why the crouch mechanic isn't working all that well in unity. I would be grateful to anyone who can help me understand why this code doesn't work and how can I ...
Daniel Leon's user avatar
2 votes
1 answer
67 views

Tracking a button works once, but when I click it a second time, nothing happens

In Unity, I have an idea for a simple game where, if a child object collides with an object tagged "wall" and presses the W button, the parent object moves towards the collided object. ...
user25482554's user avatar
2 votes
0 answers
52 views

FMOD Error in Build: "Cannot create FMOD::Sound instance" - AudioClips Fail to Load (Works perfect in Editor)

I’m currently developing a Full Motion Video (FMV) game which, by its nature, contains a very large number of video and audio clips. I’ve encountered a critical issue that only appears in the built ...
İsmail Seçkin's user avatar
0 votes
1 answer
78 views

unity android dependency resolver is stuck at 0%

image resolver is stuck at 0% Running Gradle... E:\game project\spaceFighterMobile\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "E:\game project\spaceFighterMobile\Temp\...
Md Labib Alam's user avatar
2 votes
1 answer
65 views

Assembly-CSharp not loading when I open my Unity scripts written with C# in Visual Studio 2022

When I open my Unity scripts in Visual Studio 2022, I am greeted with this error: I tried deleting all .csproj files before opening in VS and also tried reinstalling VS and Unity. The file being ...
JSB's user avatar
  • 49
1 vote
1 answer
89 views

PlayerPrefs won't update between simultaneous players

I am currently developing a WebGL app with Unity and using PlayerPrefs to try and make it so that a unique user id is generated for a player and used to connect to a remote lobby system. The problem I'...
samson's user avatar
  • 45
0 votes
0 answers
34 views

iOS Widget Extension Provisioning Issue with Unity Cloud Build

I have a Unity package that creates a iOS widget extension with its own Bundle Identifier. Everything builds and runs correctly when I build locally from Xcode, but when I try to build using Unity ...
sapir1126's user avatar
2 votes
1 answer
121 views

How to query Firebase Realtime Database for top N users and current user’s rank

How to index Firebase Realtime Database for leaderboard and get current user’s rank? I’m using Firebase Realtime Database to store user data for a game. I want to implement a leaderboard based on the ...
Oozeer's user avatar
  • 312
0 votes
0 answers
98 views

How do I construct an Il2Cpp string?

Using Il2CppDumper, I have dumped my files and am perusing the methods and their arguments using dnSpy. Some methods take string arguments like this one: [Token(Token = "0x6000338")] [...
Garren Fitzenreiter's user avatar
0 votes
0 answers
51 views

Rigidbody not moving on start even though capsulecast not detecting anything

I want to implement basic movement using a rigidbody but my player at the start of the game cant move using WASD and can only jump and shift. When they shift, they slide to the side a bit before WASD ...
Mohamed Nasser's user avatar
0 votes
0 answers
30 views

Android project using untiy-classes.jar (generated by Unity) with some classes that can't be resolved

I work on a small android project that uses the unity-clases.jar generated by Unity. Some (not all) of the files/classes in the .jar can't be resolved when compiling the android project and I don't ...
jptsetung's user avatar
  • 9,189
-4 votes
1 answer
70 views

Unity 6 keeps giving me error from cs.meta file [closed]

Unity keeps giving me error from cs.meta file to change the language version from c#9 to c#10 or greater because of feature "global using directive", how should I change the version or what ...
rumaisa khalid's user avatar
0 votes
1 answer
93 views

Make a floating point origin in unity

I created this code in Unity to only move the object in my scene if the threshold is exceeded, but it does not set my tracking object, and continues to snap to it. My tracking object was a rigid body ...
Bryce Robinson's user avatar
0 votes
0 answers
59 views

How to check if gameobject with Rigidbody and a Physic material doesn't move in Unity3d in C# in another script?

game engine : Unity3d 2021.3.17f1. programming language :C#. Windows 10 Hello, I create a football like game in Unity 3d. How do I check that a game object with a Rigidbody component and a Physic ...
MikaMikashu's user avatar
0 votes
1 answer
69 views

VLC for unity trial version, the type or namespace name 'LibVLC' could not be found

I'm trying to test the free trial version of VLC for Unity, the package was downloaded here https://videolabs.io/store/unity/ I imported the downloaded "vlc-unity-trial-v6.unitypackage" in ...
jptsetung's user avatar
  • 9,189
-1 votes
0 answers
35 views

In an empty Unity Android project, no more than 20 fps

There are many answers to this question on the internet, but none of them helped me. I turned off Optimized frame pacing and VSync, tried deleting Vulcan and OpenGLES3, deleted Adaptive Performance, ...
Kyzlyk's user avatar
  • 26
1 vote
1 answer
69 views

Bluetooth LE Device Connects Then Immediately Disconnects on First Attempt

I'm developing a Unity application that connects to custom ESP32-based Bluetooth LE joysticks on Android. I'm experiencing a consistent pattern where the first connection attempt fails with an ...
Marco Vincenzi's user avatar
-1 votes
0 answers
39 views

Incorrect attribution of non-organic installs as organic (Appsflayer)

Problem description: when users install the app from the Google Play links that include referrer parameters, the SDK processes the referrer parameters correctly, but AppsFlyer attributes these ...
Dmitriy's user avatar
1 vote
0 answers
43 views

Cinemachine follow camera stuttering if the target object to follow rigidbody gravity is disabled. how to make the camera follow smooth?

when using gravity, it's working fine the camera is following smooth. when gravity is disabled, the camera is stuttering. and i tried in the Rigidbody to set the Interpolate property to Interpolate ...
Daniel Lip's user avatar
  • 11.5k
0 votes
0 answers
40 views

Unity Fusion Network Transform Jitter

I'm making a multiplayer game using Server/Client mode in Photon Fusion 1 in unity where players dogfight with their planes. Now the issue I'm facing is when I attach Network transform component on ...
Umair Manzoor's user avatar
0 votes
1 answer
41 views

Can't use DOTS in unity 6.2

I wanted to study using ECS for a new project. But after I imported them using the git urls provided by the official site, i ran into some error messages: here are the packages i have: I have ...
Oak橡木's user avatar
0 votes
0 answers
86 views

Installing Onnx package broke all python dependencies

I followed all of the instructions in this video and installed al the the proper packages on top of Python 3.10.0 https://www.youtube.com/watch?v=v1d7SinTzEY&t=1s pip install torch torchaudio ...
Mich's user avatar
  • 3,706
1 vote
1 answer
87 views

How to freeze a player so that he does not move to one side

How can I make it so that the player cannot move, even through physics, in one direction? I tried this option: using UnityEngine; using UnityEngine.InputSystem; public class Player: MonoBehaviour { ...
PinBIb's user avatar
  • 21
1 vote
0 answers
59 views

Render Texture Triangle From Vertexes and Uvs

I'm attempting to render out part of a spritesheet to a new standalone texture. I have the triangles, vertexes and uv coords of my sprite but my code only correctly renders the first triangle not the ...
Knackname's user avatar
0 votes
0 answers
43 views

How to show GBK encoded header in Mac version Unity editor properly?

I work on my project on both Mac and Windows. Some editor headers were written in Visual Studio on Windows in Chinese, and were encoded in GBK(default I guess). However they don't show properly on mac ...
ArtS's user avatar
  • 2,022
-3 votes
1 answer
56 views

How to change spacehip's axis from Z to X? [closed]

You can see that the player rig has the axes bug not the prefab I have added 0.5 to the current position I was doing a unity course(Game Dev.Tv) and I happen to know that my Z axis is not correct. ...
Akshat Mittal's user avatar
0 votes
0 answers
34 views

Android XR Unity player Cannot access 'constructor(p0: Context!, p1: B!, p2: IUnityPlayerLifecycleEvents!): UnityPlayer' it is protected

I am building and app for Android XR and I am using Unity to build 3D text. My final goal is to allow user to set text in textfield in Jetpack Compose UI, save it to Firestore, fetch it and display 3D ...
user7289922's user avatar
2 votes
1 answer
93 views

Mathf.MoveTowards Does nothing

Im trying to use Mathf.MoveTowards to fade an image in when a button is pressed and out when its not. This is the code for the input, its called every frame if(HackModeInput.ReadValue<float>()==...
Chuck's user avatar
  • 265
1 vote
1 answer
142 views

Why OnMouseDown() is still not working after I checked the script and the Collider and they are all fine and connected to the object?

I am new to Unity. I want the object that is clicked to disappear, along with the text associated with it. I have this code: using UnityEngine; public class ClickControl : MonoBehaviour { public ...
LosmiNCL's user avatar
  • 341
0 votes
1 answer
200 views

Gradle build failed in Unity 6

I needed to switch to API 36, but for some reason no matter what I do, I always get an error when building. First: > Configure project :unityLibrary Variant 'debug', will keep symbols in binaries ...
HonoLite's user avatar
0 votes
0 answers
45 views

How to handle lifecycle of cameraX?

I am trying to make a cameraX plugin which I plan to use inside unity. The camera seems to start ( having some problems while setting resolution as well), but when I put the app in the background, the ...
Khushal Nirmal Jain's user avatar
1 vote
0 answers
28 views

Shared AR Target Image Not Detected on Device, But Works in Playback

I'm developing a project using Niantic ARDK 3.16 and the Shared AR feature. I've run into a significant issue where a target image is not being detected when I run the application on a physical device....
Uparupa's user avatar
  • 23
-1 votes
1 answer
91 views

How to show the camera's view frustum lines in the Unity Scene editor? (whitout selecting) [closed]

I'm working on a Unity project where I need to constantly monitor the main camera's perspective. By default, the white lines showing the camera's view frustum are only visible in the Scene window when ...
serhat aktas's user avatar
-1 votes
1 answer
146 views

How to prevent C# Invalid Cast Exception when parsing XML data that contains comments [closed]

I have the following C# code block that is parsing an XML DOM into a GUI for a game I am developing: public void ReadChildrenOf(XmlElement element, GameObject parent) { foreach (XmlNode mchild in ...
Jax's user avatar
  • 405
3 votes
1 answer
110 views

Noda Time reporting incorrect timezone (Unity - iOS/Android)

I'm working on a project where I need to get the current timezone of a device in IANA format in a Unity App for iOS and Android. I have so far tried using TimeZoneInfo which doesn't give the timezone ...
Josiah Allen-Litchmore's user avatar
0 votes
0 answers
46 views

Vr meta Quest streaming vision to another application real time display problem

Good afternoon everyone. I want to create 2 applications, one of which will be run on VR Metaquest 2 and the other on PC for example. I want to make the output of the VR headset of what the user sees ...
Andrej Tibenský's user avatar
1 vote
0 answers
83 views

Question about google autentification v2. Status: canceled

I have a question regarding the Google Play Games v2 SDK. I’m trying to integrate Google Play Games with PlayFab, but when I push the button to connect, I keep getting this error: “Google Play auth ...
Alex Alex's user avatar
2 votes
2 answers
134 views

Changing a variable to a property produces an error

I have a unity project. A protected Vector2 variable (velocity) in an abstract class (MovementAgent), used by an agent which inherits from this class. All works fine and dandy, but when I try to ...
Klingonlord's user avatar
0 votes
0 answers
40 views

UI Toolkit TextField: Keyboard hides immediately after showing on Android

I’m encountering two issues with TextField on Android using UI Toolkit: If I tap a TextField repeatedly, causing the keyboard to show and hide multiple times, then tap it again, the keyboard pops up ...
orange w's user avatar

1
2 3 4 5
1540