Questions tagged [unity3d]
Unity is a cross-platform game engine by Unity Technologies.
73,177
questions
0
votes
0
answers
5
views
Unity shader graph custom function error "variable used without having been completely initialized"
It's my first time working with shaders in unity and I am following this tutorial. In the tutorial he creates a .hlsl file and creates a custom function but when I try to do it I get the error "...
0
votes
0
answers
22
views
Magnify effect for sprite not working properly
I'm working on a 2d game in Unity. I would like my sprite to slightly increase in size and then back to normal (loop it). So basically it's a magnifying effect on a loop. It's something for a loading ...
-2
votes
0
answers
14
views
Unity New Input System stopped working for no reason
I have a bunch of troops that player can control with a joystick. Everything was working fine for a week and then it suddenly stopped, but only for the last troop in a Hierarchy (always only for the ...
0
votes
0
answers
12
views
WinAPI making a window fullscreen / borderless from another Unity program using .net 2.0
I have a program made in Unity that starts and stops games. (Its a launcher for an arcade machine)
I am already using winAPI to do various things. Some games cannot be set to run in fullscreen when ...
-2
votes
0
answers
19
views
Problem with Unity maze generation algorithm [closed]
Im new to c# and unity and developing a game for a project in which a key feature is a randomly generated maze. Being quite new I opted to follow a tutorial. My Game is a 2D unity project. The ...
-3
votes
0
answers
19
views
I want like Desktop Goose in Mobile [closed]
But there is no information also chatGPT, So I need help, I wander off in Flutter's dirt
How to make Mobile DesktopGoose, What is the suit of language for my program
There is a no code, because I want ...
0
votes
0
answers
12
views
Unity Game view is black
I have created very small project with Unity with one button and one slate.
When I open Game tab - its not showing anything but the black.
Any package or setting is missing?
Screen 1 -
Screen 2 -
I ...
0
votes
0
answers
8
views
Integration of Anylogic with VR?
Do you know if there is any way to integrate Anylogic with a VR device to see the simulation run in VR? In particular, I'd like to see the simulation of a production line with a VR device (for ...
-1
votes
0
answers
12
views
Unity Transport - Player play as server
I want connect two player throughout unity transport
but I don't want use vps or ...
I want one of the player play server role
and other player connect it by its ip
is it possible ?
can you help me ?
...
0
votes
0
answers
17
views
How to fix the problem that objects regenerate after scene remake
The goal I expected to achieve is that an object will be destroyed after being clicked, and the object that was just clicked will appear in the backpack, but the problem now is that when the object is ...
0
votes
1
answer
8
views
How to make a player in a 2D game in Unity bounce off ground based on the angle he is touching the collider of the ground?
I want the player to bounce off the ground only when he touches it from the side, so that the player does not get stuck on the collision and does not bounce off when he stands on top of ground. The ...
0
votes
0
answers
5
views
Image being tracked in editor but not in android build made with unity + vuforia
Unity - 2020.3.19
Vuforia - 10.14
I'm trying to make my first vuforia project in unity by using an image tracker to display a cube. It works fine in the editor which means there isn't a problem in the ...
0
votes
0
answers
17
views
Android game freezing when turning on parent with a large number of childs
I making android game with Unity but I met problem with a large number of objects. The game has an inventory system. When I add an item to the inventory when there are already many objects its working ...
-1
votes
0
answers
18
views
personnel tracking system with unity [closed]
I want to write a simple employee tracking system with unity. Employees will not be able to confirm that they are logged in without connecting to wifi from their phones. Can I develop such an ...
0
votes
1
answer
19
views
Most efficient way of live-streaming and recording with Hololens 2 in Unity?
Question
I am developing a Hololens 2 application in Unity with MRTK. I want to show the applications to other users now, but I am having trouble sharing/recording the view of the wearer without lag ...
0
votes
0
answers
20
views
Instantiated a list from Database Firestore, on clicking Need to fetch its value
Explanation:
I have created a search field. When I type 3 letters, it searches from Firestore collection field tags and return the result which I instantiate it in a list. Screenshot attached below of ...
0
votes
1
answer
17
views
Script is working even disabling it in the play mode
Here's the screen recording of the issue:
https://youtu.be/WnFuhhiBS7M
There are 2 players. Each have player script on them. That script is responsible for the jump function.
Now when I play the game ...
0
votes
1
answer
14
views
build the application from unity 3d and it doesn't work to install on the andoid smartphone device
I have successfully built the apk on Unity, but when I install it on my smartphone "apk is not installed".
i have turned on minimum target API Android 7 Api level 24 nougat and target API ...
0
votes
0
answers
9
views
vuforia 10.13.4 build to android is not working
I have recently been working on implementing Vuforia, but I have encountered an issue. When I try to output my results based on my past experience, I cannot get the same results as before. My ...
-2
votes
1
answer
28
views
Unity visual scripting hell
For some reason, the API only support visual scripting which is hell for me. But some of the function work and some don't, not sure if it's bug please help.
This is driving me crazy because I try to ...
0
votes
1
answer
17
views
Camera cant see depth unity shader graph
im making water shader and just realized that i can see water depth effect in editor:
but i cant see it in game window:
how do i fix this?
0
votes
0
answers
19
views
Google Play Games error with Unity - "There are no public high score for this game"
I have the same problem as this (Google Play Games - "There are no public high score for this game") but as it was not answered by anyone I couldnt figure out any answers.
I am using Easy ...
-2
votes
0
answers
12
views
LeanGUI review? Should I use it in a Framework used in multiple projects? [closed]
As a game developer, I create new projects on a monthly basis and have been attempting to create a Unity framework that encompasses all of the common elements utilized in each project, such as a ...
1
vote
2
answers
29
views
How to detect the client which call the sever is not an official version of the game?
A hacker decompiled and published our game which is a trivia game.
The unofficial version of the client shows the written answer to a question.
When the client calls to request a new question, the ...
0
votes
1
answer
18
views
Get the list of Audio Output Devices inside Unity
I want to get all the available Speakers in current device. And Populate them as a dropdown options.
When Selecting the particular option in unity, I need to switch the audio playing to that ...
0
votes
1
answer
18
views
Animation snapping on loop when in unity
I have an animation that works fine on blender but whenever i import it into Unity there is a weird snapping when the animation loops.
This is how it looks on Blender: BlenderAnim
This is how it looks ...
0
votes
0
answers
7
views
Meta Quest Developer hub applab publish problem
I'm trying to upload my first VR game on applab and when i'm uploading the APK file it gives me a "API_ERROR". Can somebody help me?
-1
votes
1
answer
36
views
I'm having trouble animating in Unity
I have tried many solutions including asking ChatGPT, but it didn't fix it. This is a C# script for Unity 2d. The objective of this script is to change the sprite of whatever it's attached to. I am on ...
-1
votes
1
answer
20
views
Is There A way to get a 3d object point to the mouse in the same way a 2d object would unity 3D
I tried making the player look at the mouse in the same way that a 2d player would. I eventually made it do that but I don't understand how. I used a 3d cube a perspective camera and put a rigid body ...
-2
votes
0
answers
49
views
I want to make a typing system [closed]
I want to make a typing system and distinguish between typing the right letter and typing the wrong letter.
like this..Watch from 51 seconds,I want to make it like the text above the character's head. ...
0
votes
2
answers
60
views
Why can’t I add the score like this?
So I’ve been trying to make a little survival prototype, but I can’t figure out the very basic thing I need for this project, picking up things. I wrote the code below (I’m no programmer) but it does ...
-1
votes
0
answers
29
views
How to transform opengl to unity euler angle
I try to transform the Opengl rotation matrix to Unity euler angle by using matlab. but it doesn't work
matlab
function [ euler,T_unity] = transform_function(Rot,T)
Rot(3,1) = -Rot(3,1);
...
0
votes
0
answers
19
views
Unity 2d game, how to make the player's object jump when passing through a specific position (or collider or other object)
TLDR; how can I initiate a jump for the player's gameObject when it passes a specified y-value position?
I'm designing my first game in unity (which has been pretty fun so far!) and I could use some ...
0
votes
0
answers
8
views
Overlapping triangles in Unity do not render well
I'm working on a brick breaker style game in Unity. In my games the brick are made from triangles.
When I place the triangles (which is a white sprite) in their position and give them color and ...
-2
votes
0
answers
14
views
Can someone explain how to use all the different forms of Anti-Aliasing in Unity? [closed]
To make it simple, I've got a line renderer object being rendered to a render texture, then a camera pointing towards that texture and sending it to another render texture (I know, but my project ...
0
votes
0
answers
25
views
How to get a file from the assets folder and put it into hierarchy by script in Unity?
I'm kinda new to Unity and I want to get an image from my assets folder and put it into the hierarchy and I need to do it repeatedly.
I found out about Resources.Load but apparently it takes a file ...
0
votes
1
answer
55
views
Mathf.Clamp() is not working for values below zero
I'm working on a 2D platformer game in Unity. I have a GunController script that controls the angle of the player's gun:
Script:
using UnityEngine;
using UnityEngine.InputSystem;
public class ...
0
votes
1
answer
19
views
How can I see and edit the fields of the scriptable object in the inspector of the same script where I set reference to it?
After creating an asset object in the assets folder of a scriptable object class, we can see and edit the values of the fields of that scriptable object. Then we can reference that object in different ...
0
votes
1
answer
23
views
Problem with distribution the velocity to just enabled objects
I'm making runner game where character if collide with inactive characters make them active, the problem is if active character collides with bunch of inactive characters who are close enough, speed ...
-1
votes
0
answers
6
views
Unity multiplayer game using mirror networking
curently I am working on party game
like plate up. But I have a problem to make a lobby system. I want to create lobby list that who wants to join private or public lobby. But I cant find any tutorial ...
0
votes
0
answers
24
views
Unity grid shader with fixed cell size
I am working on a grid shader whose cells of the grid should always have exactly the same size, regardless of the shape of the GameObject. For example, if the shader is applied to two cubes that have ...
1
vote
2
answers
47
views
Make 2D collider hit only specific 2D colliders without using collision layer mask
In my 2D game, there are some circles randomly placed and some balls.
Each ball has a reference to one of the circles and this circle will apply a force to pull the ball to its center.
However, balls ...
0
votes
0
answers
17
views
I get a " Assertion failed on expression: 'exception == SCRIPTING_NULL' " error when I install the Universal RP asset in unity
I keep getting this error when I install the Universal RP asset in my unity projects.
This is the error in the console
I tried checking if it was because of a letter that unity can't take as I saw ...
0
votes
0
answers
20
views
What to do if in Unity the center of mass is determined incorrectly and does not change when the parts in the object are moved?
In my project there is an object consisting of several other objects. It constantly falls because its center of mass is displaced and defined incorrectly. In addition, after starting the game, the ...
0
votes
2
answers
44
views
How can I duplicate a gameObject in code Unity
I want to duplicate the gameObject called "Damaged".
I want it to have the exact name, position and to be a child under the gameObject Boss. The whole idea is that every time I call a ...
1
vote
1
answer
25
views
Why won't my background image render in the game view?
I'm trying to learn unity, and am currently working on what should be a very simple GameOver screen. However, it seems that the game over screen fails to render on the actual camera. I've attached ...
0
votes
1
answer
25
views
How can I keep my original player scale when parented to another object?
I have a player movement script attached to my player object, and a separate script attached to a different object which references my player and then parents it to that said object.
When I enter the ...
-1
votes
2
answers
43
views
Please help me solve the problem c# unity 2d [closed]
i asked chat gpt to create an attack script for me and it came up with this but it throws an error
The type or namespace name 'Enemy' could not be found (are you missing a using directive or an ...
0
votes
1
answer
32
views
How to collect compass data, in iOS, when a Unity Application is in background?
I have few knowledge of Objective-C and Swift but after spending several hours to write a native plugin to collect compass data using a background thread in iOS, below there is the plugin so far
// ...
0
votes
1
answer
39
views
Change Color of a public GameObject in script [Unity]
I created a gameobject call archor, its has a script attach to it, that script refer to a various of gameobject (e.g. Wall) through
public GameObject Wall (in code)
then drag a prefab from Unity ...