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.

0 votes
0 answers
16 views

Unity 2d A* Pathfinding cant get negative x velocity

im making a script about a topdown 2d car Ai Movement to move around the city randomly via waypoint using A* and the part of that script is to change thing like the waypoint scan range(collider offset)...
Phc D's user avatar
  • 1
1 vote
2 answers
42 views

Camera Won't Shake When Enemy Attacked

I want my camera shake when isDamaging = true at EnemyDamage script but It wont happent I dont even get why theres a problem with that stuff it doesnt make sense its looking like %100 true when I ...
ybay's user avatar
  • 11
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
0 votes
1 answer
15 views

Unity Mirror Scene Start Synchronization

I'm fairly new to Mirror with Unity and network code in general. In short, my goal is to have a gameobject that already exists in the scene to do the following: Run some logic that changes the ...
Josh Salazar'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
0 votes
0 answers
27 views

Error loading native library grpc_csharp_ext.x64.dll in Unity [closed]

I'm following this tutorial (https://www.youtube.com/watch?v=D0jTowlMROc) of ml-agents. I couldn't perform a learning test run of the example (in the video). After typing "mlagents-learn --run-id ...
ismail arrouchdi'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
-3 votes
0 answers
28 views

Is there any script to replace the turn off behavior that was used in the past? [closed]

Does anyone know why the turnoffBehavior script was removed from vuforia? Is there a script that does the same thing in the current version of vuforia? Or is there any alternative way of doing what he ...
João Victor Silva'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
-1 votes
0 answers
11 views

How to use screen mirron at unity android app

I want to share my screen in my TV while I'm using my unity app. I rather to do this with using a third app. is there a way to do this in unity: public void buttonScreenMirror(View view){ Intent ...
Dixlan Barrios's user avatar
0 votes
1 answer
17 views

Understanding Different Behaviors in Unity Rotation Calculation

I have recently begun learning Unity and encountered a perplexing issue. I implemented two different scripts to control the rotation of a GameObject, specifically a ball. In the first script, I ...
Neel Patil's user avatar
0 votes
0 answers
28 views

Why unity requires java 17 and gives an error: "required version java11"

Error: LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been ...
xvideosman's user avatar
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

15 30 50 per page