Category "unity3d"

joystick positioning relative to screen size

I want the joystick fixed on the bottom-right the screen, no matter the resolution/window size. Although my solution works, there must be a cleaner code for thi

Add Component to GameObject that is locally safed

I want to safe a configurable joint as local variable, destroy it than (do stuff) add the configurable joint. Joint joint = outsideBodyPart.GetComponent

Unity android gradle build fails duplicate class

I have been looking for the last few days for a solution to my problem. I have multiple SDKs imported in my project (firebase, facebook, admob, etc) and it was

Unity - Make character look at mouse with New input system/Character Controller

Been following this guide https://youtu.be/bXNFxQpp2qk?t=1280 for Character Controller. This got me getting basic movement working and at time 21:20 he creates

Unity HDRP Dark Pixels on random objects and edges

I have been trying to fix this problem for the past 5 days There are a lot of annoying dark pixels on multiple random objects. Examples: Walls/Pillar: https://i

checkjni error happen when use android studio build apk, while use unity build apk run well

with my jni demo, i use CallStaticIntMethod to call java method with boolean return. then i build this to .so, when i use this so in android studio project, the

Failed resolution of Landroidx / ActivityCompat;

I'm trying to make a java library for my Unity game. In this case I want get permission from Android API. However, I get an error: AndroidJavaException: java.la

I keep getting a "scriptcs" error in my C# code for Unity. Nothing I've seen on the internet is working

here is the code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarDrive : MonoBehaviour { [SerializedField]

Video call on Unity with WebRTC without server

I'd like to make a video call app using WebRTC on Unity. I have investigated almost of the WebRTC services and found out that the WebRTC services require "my ow

How can I get Time.time as a fixed integer after an event happens in Unity

I want to display on the screen that the player has achieved their goals in this much time after playing the game. But when I display Time.time it keeps changin

Float3 array values are different in compute shader than what I sent them to be as from C# script in unity?

So I am using a compute shader in unity to find groups of vertices that overlap (are the same as) other groups of vertices in a Vector3[]. I have a List < Li

Move object in Unity 2D

I have made this script to move my player with no physics involved: using System.Collections; using System.Collections.Generic; using UnityEngine;

Weird ContactPoint2D on two BoxCollider2D collision

Well, while creating a kind of 2D platformer using Tilemaps for creating levels consisting of blocks I stumbled upon a problem with weird contact points I get o

Unity2d pun2 kill player nickname problem.(Little english.)

When my player kill other player, I want to find death player nickname. How?

Displaying an image to a camera

How would you approach displaying an image to a camera, with the option of editing it pixel by pixel at runtime?

how to launch AR apps on emulator?

I'm developing an AR app using unity but I don't have an android mobile so I decided to work on an emulator and I read all documentation about it but it didn't

How do you collaborate in Unity?

My friend and I want to work on a Unity project together but we do not know-how. How would my friend and I both be able to have access to the files and the proj

How to line up objects along a drawn line?

I try to do the following: at the bottom of the screen there is a small window for drawing a line, in the center of the screen there are objects that line up in

Google Fit REST API and Unity

I have a game developed for me in Unity. The game pulls steps, blood pressure and glucose data. So far my developer have been able to pull health data from Appl

Need Help in Rigidbody based FPS Controller in Unity

I am Learning unity and trying to create a fps game, but while making its controller i am facing a bit problem, like i want to move player ,, but using rigidbo