76,868 questions
0
votes
0
answers
33
views
WebXR + Unity build failing to render on Quest Browser after working previously
I am building a VR web app on Unity and using the WebGL platform with the WebXR export. I am not doing much special at the moment except using the WebGLTemplate HTML file to request an XR session when ...
0
votes
1
answer
94
views
Addressables doesn't unload
I'm exploring Addressables and have encountered a problem. The code shown here correctly unloads resources (the profiler shows the number of handlers is zero and the status is none):
[SerializeField] ...
0
votes
0
answers
46
views
Unity IPointerMoveHandler, IPointerClickHandler callbacks with New Input System
I'm having trouble understanding how the "IPointer" (IPointerDownHandler, IPointerMoveHandler, IPointerUpHandler, IPointerClickHandler) interfaces are supposed to work with the New Input ...
-2
votes
0
answers
49
views
LeanTween tool in Unity is not scaling or bouncing the gameobject [closed]
I have been testing the LeanTween but it not working as expected for me. I'm trying to make a bounce effect on an UI element but its not working:
LeanTween.scale(_myGameObject, new Vector3(1f, 1f, 1f),...
1
vote
1
answer
91
views
Unity Action decouple classes
I'm learning Unity to know how to avoid dependencies. I have these two classes, one that generates an event:
public class ClickController : MonoBehaviour
{
public static event Action<...
-1
votes
0
answers
112
views
List inside dictionary repeating the same element indefinitely
Note: Someone in the first iteration of this question said that CheckForMagicPoint() is being called every frame, but it is not, as checkingForMagicPoints is only set to true when someone is using the ...
Best practices
1
vote
2
replies
124
views
Naming Conventions: Manager, System. Handler or Service?
I have a bunch of background systems that do various things.
I.e:
UnitManager : holds all the information regarding all the player units in the game
SaveSystem: self-explanatory
UnitActionSystem: ...
-1
votes
0
answers
33
views
Projection mapping onto a cylindrical surface along with floor [closed]
We have a fully cylindrical screen along with the floor. Our setup includes 6 cameras. 4 for the walls and 2 for the floor. How can we map a 360d panoramic image onto the screen without distortion? ...
0
votes
1
answer
89
views
Unity animation and sound effects out of sync
I'm trying to create a First Person Shooter (FPS) game on Unity.
I'm currently facing animation + sound effect (sfx) problems as they are not getting synced.
The shooting sound effect is getting ...
0
votes
1
answer
102
views
Unity crashes after I run my save file script
I'm trying to create a save file that save the position and speed of all objects in the scene, however when OnSave() is called, the unity editor completely freezes and doesn't seem to do anything.
...
2
votes
2
answers
78
views
Unity NGO NetworkList of struct that contains an array of struct
So I have a simple struct that contains just a FixedString32Bytes and an int like so :
[System.Serializable]
public struct SimpleDataStruct : INetworkSerializable, IEquatable<SimpleDataStruct>
{
...
0
votes
0
answers
30
views
Unity IAP 5.1.2 and StoreController Fetchproducts question
I am currently using Unity IAP version 5.1.2 to retrieve the product list from the Google Play Store. The code is written like this, but the problem is that there is no response at all—neither success ...
Advice
0
votes
2
replies
65
views
How can i rotate my player according to mouse position?
I have 3d scene but 2.5d view i have to rotate player according to mouse position and i want to move player according to wasd keys.I am using the new input system. I also want to make animations if ...
Advice
2
votes
0
replies
78
views
Best way to make a camera controller in Unity (New input system)
I am using the new input system, trying to make a decent camera controller. My current code is:
private void RotateCam()
{
Vector2 look = InputManager.look; //lookAction.ReadValue<Vector2>();...
0
votes
0
answers
59
views
Confusing behaviour of 'hover' state for Unity UI Toolkit Buttons
I have the following setup:
btn.uxml:
<ui:UXML xmlns:ui="UnityEngine.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd"
editor-extension-...