76,990 questions
0
votes
0
answers
15
views
Can't select a TextMeshPro Input Field on ChromeOS builds
I have a TextMeshPro Input Field component that works fine in the editor. However, when building to a Chromebook, if I select it, it immediately deselects itself and I am not able to type in it (at ...
-6
votes
0
answers
52
views
Understanding CPU vs GPU Time Distribution in Unity [closed]
I'm trying to check whether my understanding of how Unity distributes work across the CPU and GPU is correct.
Below is the simplified model I'm working with:
The CPU runs gameplay scripts, prepares ...
Tooling
0
votes
0
replies
19
views
Does Unreal Engine support Android XR, and what is the correct setup to use it?
I am researching whether Unreal Engine can be reliably used for Android-based XR before starting a new project.
The documentation is unclear and split between ARCore, OpenXR for Android, and vendor ...
-1
votes
0
answers
44
views
HLSL URP 17.0 PBR functions do not render light
Unity provides their PBR lighting function with UniversalFragmentPBR, and UniversalFragmentBlinnPhong, but for me, it doesn't seem to render the light.
I have been following a couple of books on ...
Best practices
0
votes
3
replies
65
views
How to not write a Firestore Converter for each type. (Firestore + Unity / C#)
I am using Firestore and Unity, I want to be able to serialize a Unity class, say Vector2Int so I write a Vector2IntConverter(FirestoreConverter<Vector2Int>).
When I upload my DTO, say:
[...
-6
votes
0
answers
35
views
AdMob App Open Ad overlaping Interstitial and Rewarded Ads before they are closed [closed]
So im using Admob AOA, Inter and Reward ads in my Unity game project but the problem is when Interstitial or Rewarded ad is displaying, if i clicked on it to navigate to the ad page and return to the ...
Advice
0
votes
2
replies
44
views
Better AI Behaviour
I am currently working on AI Behaviour in a Beat-Em-Up game in Unity for my beat-em-up project, I am currently using my own statemachine system (with states that don't inherit from monobehaviour) to ...
-1
votes
0
answers
25
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
Advice
1
vote
1
replies
48
views
Looking for a better way to handle animation trigger calling in Unity using a Blend Tree and object instantiation
I'm fiddling around with a 2D side-scroll game using C# in Unity. Basically, I have a method that gets called when I hit an animation trigger on the animator and that method instantiates a GameObject (...
-1
votes
1
answer
43
views
Unity UWP build: “A scripted object probably BlankScene has a different serialization layout” when using [SerializeField]
I'm encountering a serialization error when building a Unity project for UWP and running it in Visual Studio:
A scripted object probably BlankScene has a different serialization layout when loading (...
0
votes
0
answers
54
views
How to make a player stick to a planet while moving?
I actually make a game about a space explorer but i've enconter a problem. When my player hit the ground (or when he spawn on the surface) he slide on the back of the planet. How can i actually make ...
0
votes
0
answers
43
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....
Advice
1
vote
0
replies
71
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 ...
-1
votes
0
answers
64
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
{
...
0
votes
1
answer
102
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 ...
2
votes
0
answers
73
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 ...
2
votes
1
answer
71
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 ...
0
votes
0
answers
42
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 ...
0
votes
0
answers
116
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")]
[...
0
votes
0
answers
34
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 ...
0
votes
1
answer
99
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 ...
0
votes
1
answer
81
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 ...
1
vote
0
answers
52
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 ...
0
votes
1
answer
50
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 ...
1
vote
1
answer
95
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
{
...