Skip to main content

All Questions

Tagged with
0 votes
2 answers
65 views

Why is this problem of Unity collision count happening?

I'm counting down the collisionCount to get button out if I crash three times. However, the collisionCount is not counted properly, so it continues to be counted as 1. I'm asking questions because I ...
jin ichi's user avatar
1 vote
1 answer
21 views

I am having a hard time getting an object to rotate and move in the object's new forward direction

Why is my player still moving forward(north) in world coordinates? I want the player to face and move in a new direction. Please explain in simple terms. void PlayerMover() { _step = _speed * ...
eyetengu's user avatar
1 vote
0 answers
16 views

Mouse controls inverted when player is upside down (Unity)

I am creating a space game in which the player can be fully rotated, axis independent. No up or down. However, whenever the player is upside down, the mouse controls are inverted. Here is the current ...
TheBreadPerson's user avatar
1 vote
1 answer
20 views

NNModel (ONNX) Assertion Error in Barracuda

I am trying to use a ONNX model for inference in Unity using Barracuda, following this repo. When I try to call model inference, I get the following assertion error. AssertionException: Assertion ...
Tammy Zeng's user avatar
0 votes
0 answers
14 views

How to Save and Load 3D Object Transformations Using QR Code like markers in Magic Leap 2?

I am developing an app for construction professionals using Magic Leap 2. I am trying to save the transformations of a 3D object set at a specific location on a QR code-like marker. The goal is that ...
shubh's user avatar
  • 3
0 votes
1 answer
24 views

When moving a sprite in unity2d how to avoid from the sprite rotating like losing control by the rigidbody but to be able to rotate at turns?

I want to keep using the Rigidbody 2d on the player but when i move the player while he is moving, he also make rotations like losing control. in the Rigidbody of the transform i set the Gravity Scale ...
Daniel Lip's user avatar
  • 11.2k
0 votes
1 answer
52 views

"Decorate" return type in C# child classes

Objective: Serialize data from a class, with the base class taking care of its properties and child classes taking care only of the "new" properties added. Disclaimer: I come from TypeScript ...
danikaze's user avatar
  • 1,614
0 votes
0 answers
22 views

How to replay game dynamically and in slow motion?

I have a problem in ultimate replay package script, I have this code: using UnityEngine; using UltimateReplay; namespace ultimateReplay { public class ReplayManagerScript : MonoBehaviour {...
Piyon Raj's user avatar
0 votes
1 answer
26 views

Problem creating seamless chunk generation

I am working on creating infinite chunks of terrain, with variation in the height using perlin noise in unity, and am encountering problems getting the seams to align to create a tileable environment ...
camden carr's user avatar
0 votes
1 answer
39 views

Why does the player sprite look under the yellow point sprite even if both at the same Z height of 0?

I went in the editor to the menu in the editor: Edit > Project settings... > Tags and Layers and then added the Player and the YellowPoints in the Sorting Layers and then in the player object ...
Daniel Lip's user avatar
  • 11.2k
-7 votes
0 answers
52 views

How To Access An Item In A Struct Which Is In An Array [closed]

I am making a tower defense game and used structs in an array and want to access an item in the structs. I don't want to use a 2d array as that can't show up in a unity editor. I tried tutorials and ...
Simon Y's user avatar
0 votes
1 answer
26 views

SetActive only working for one object when I am calling it from another script

I am trying to have three separate buttons activate at the same time when call from another script but only the first button is activating despite all buttons using the same script. the script inside ...
SomeStupidSheep GD's user avatar
0 votes
1 answer
22 views

How do I call a a method of a script on a condition which isn't attached to a gameobject without calling it from another script

This script's purpose is to increase the amount of enemies that are spawned after all of them are killed, my question is if there is anyway to call this script (like calling it via [...
luigi65536's user avatar
0 votes
2 answers
49 views

Why doesn't LogEvent FireBase work in Unity 2022.3.14f1?

I've been trying to add analytics to my game for 2 days now, on the second day I was finally able to build the project, but another problem arose, my events are not displayed in the FireBase RealTime ...
Max_B's user avatar
  • 13
-1 votes
0 answers
17 views

VR application issue

ia am working on a VR application in Unity where you need to rotate clock parts around a central mechanism in a circular path, maintaining a 3-meter distance.i need for help using c#language using ...
Nagendran Kumar's user avatar

15 30 50 per page