Questions tagged [unity]

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

How to get my specific Item index on inventory when pickup?

So I want to make some inventory system for my game, and I found some issue when collecting the item, what I want here matching the index Inventory_UI system ...
0
votes
0answers
6 views

SpriteRenderer color not responding to script!

I have written a simple c# class that is supposed to change the color of the Player Renderer. But, there seems to be a problem! whenever I call the function OnCallFun() ... the color stays put and ...
0
votes
1answer
12 views
0
votes
0answers
13 views

Do you think Unity would run on my MacBook? [closed]

I just purchased a refurbished 2015 MacBook Pro, 13.3" and with an i7 and 16gb of RAM. Do you think it would work out to install Unity? I haven't used Unity before but I know it's a huge download ...
0
votes
0answers
10 views

First object jumps on re-entry of second colliding object

The scenario is that I have two objects - Object A and Object B. The Object A is lying on the ground and when Object B enters the collider of Object A, the Object A moves (only X and Z axis) with ...
2
votes
1answer
36 views

My Earthbound-like Movement Script works in Unity Gameview, but runs differently in Gamebuild

First programming question I've ever made in my short journey. I'm trying to create a script which moves members of your party in a line behind you (think Chronotrigger or Earthbound) https://youtu.be/...
0
votes
0answers
24 views

Unity App Crashes on Android

I've had this issue many a time, unfortunately anything I've used to fix it before doesn't work. So, if I build and run the app, it will run the app for about 5 seconds, before crashing. If I install ...
0
votes
0answers
26 views

Problem with InverseTransformDirection and non-uniform scale

I made the plane to work with mesh vertices ...
0
votes
1answer
36 views

How can I create a GraphQL query with nested {}

I am using GraphQL plugin from https://github.com/Gazuntype/graphQL-client-unity. I have a long query from which I am parsing it to JSON to get individual values. It all works fine. Unfortunately the ...
0
votes
1answer
34 views

Goal system unity

How do I make a Goal system in unity that must be completed before the level can be passed. Goals may be:pick up block Get red flag Go to certain position Here is sample code - ...
0
votes
1answer
16 views

Make the texture array node work with cubemaps?

I am working on a procedural interior mapping shader in Unity's Shader Graph. Ideally, I'd like to feed it a set of cubemaps it can pick from semi-randomly. However, it seems that by default the ...
0
votes
1answer
22 views

Why does Animator component prevent the player from facing left?

I'm making a 2D platformer with Unity. A few days ago, I was testing the game; the player could face right and left based on its moving direction and animations were playing correctly. I exited ...
0
votes
0answers
16 views

Not able to upload to Oculus Store

I am building for Quest and signing the package with V2. I am also creating store-based Android Manifest file. Unfortunately the upload stops at 2nd step where I receive the error - "The APK was ...
0
votes
1answer
15 views

Mirror Create Player From Client and Change Scene

I'm very new to Mirror in Unity but I have a lot of experience in Network-programing. I'm currently trying to create a Game, where the Player's data is stored on the client, and can join different ...
0
votes
0answers
62 views

Looping world for a top down space shooter?

I am trying to understand how to make a seamless looping world for my top down space shooter. First thing I tried was using multiple cameras, and teleporting the player when he reaches the edge, but ...
0
votes
1answer
47 views

Why players who join late can't see other people data?

I want to show the name of the players above their head but I have a problem where people joining late doesn't get other players' name. For example: Player 1 joins to the server with the name Peter. ...
0
votes
1answer
34 views

Press and hold camera movement with mouse in new Input System?

I am transitioning to the new movement system and am having trouble figuring out how to move the camera when a mouse button is pressed and held. Here's how I did it before: ...
2
votes
1answer
768 views

How to correctly implement custom tick system?

I am making a custom tick system to suit my needs (calling normal ticks every 0.2 seconds, medium ticks every 5 seconds etc...) I followed the tutorial from this video: CodeMonkey tick system tutorial ...
0
votes
0answers
18 views

Automatic Disconnecting of Players and The game is kinda Lag in PUN 2

I am creating a 3d game application in unity with the use of PUN2. When I start the game, all players automatically disconnected and the animation of players is kinda lag or not synchronizing towards ...
2
votes
1answer
50 views

Generating Realistic Looking Wire in Unity

I'm designing a game that involves the simulation of a breadboard. I would like some advice on the best way to simulate jumper wires used to connect various places on the breadboard together. I have ...
0
votes
1answer
27 views

How to apply Time.timeScale only to certain scripts?

I have a need to pause my game and the simplest and most clean way that I know of (other than completely designing my own time system) is by using ...
0
votes
0answers
18 views

Changing Animation Sprites At Runtime Once

I am designing a 2d platformer with pixel 32x32 sprites, right now I’m using the method that’s utilized at 20 minutes in this video. I’m pretty much creating a main player parent object and adding the ...
0
votes
1answer
7 views

Rotate a Polygon node in Shader Graph

I have a hexagon in the Polygon node I would like to rotate so the pointy side is upwards. Applying the rotation nodes, however, simply changes the color of the hexagon from white to a color in the ...
0
votes
0answers
12 views

Subclasses in unity editor

I would like to implement an action system where gameobjects offer different actions available to characters. Actions are composed of several steps holding the details to be performed. These steps ...
0
votes
1answer
27 views

The Architecture of a Scrollable Retro Menu Navigation System

I've been trying to research on this topic for quite a while and found barely any useful information. What I want to achieve: Replicating a scrollable menu navigation in Unity, like shown here. It ...
0
votes
1answer
24 views

Unity Mirror client scene.local player.connection to client.client owned object not working in client

U hmm I'm new to mirror networking I just wanna find objects that the local player has authority, but it doesn't work on client, is there a solution to this? Well I could make an object tracking ...
0
votes
0answers
29 views

recommendation for a programable FPS game for training forces [closed]

I wish to develop a training simulator for army ground forces. Basic concept is that they can save lots of training time and budget by going through a simulator phase before the physical war-training, ...
0
votes
0answers
17 views

Controlled Wall Jump 2d Platformer

I would like to be able to control the intensity of the wall jump of the character, enabling the character to jump in short bursts upwards a wall and in long button presses across the wall. I have a ...
0
votes
1answer
50 views

Why is Random.Range(0,3) generating only 0, 1 or 2 when 3 is supposed to be inclusive?

I'm currently having trouble getting my head around how Random.Range() and Array[].Length are working in the script below. ...
0
votes
1answer
23 views

What is the right approach for using foot ik for characters in slopes(Specially when in walk or run)?

i use unity but this question applies for any third person controller or enemy controller. i need to use foot ik on slopes(any condition and any kind of slope) to place foot on right places. as i ...
0
votes
0answers
13 views

I can not proceed to my room menu using photon in unity when i use PhotonNetwork.JoinRoom()

I have a TextMeshProUGUI called EnterRoomName and I am trying to enter the name of the room that I'm supposed to enter, but it's not working. This is my function: <...
0
votes
0answers
17 views

Why does Unity's Application.Quit() take so long?

When a user clicks a button in my game, I call Unity's native Application.Quit() to close my game. The call is directly on the button press, with no coroutines or ...
0
votes
1answer
8 views

Unity Export Package Taking Too Long

I'm trying to export a Unity Package and it's taking far too long (it just keeps counting, and doesn't end). I'm not sure why it continues to count in the ...
0
votes
0answers
17 views

How can I make that when the first animation end the next animation will start but from the same position?

I have two animations. The first animation I downloaded from the Mixamo site. The game start when the player is on his back on the ground and then slowly stand up. When the animation end the player ...
0
votes
1answer
22 views

Why are transform values in inspector different from animation tab?

I’m trying to make animation in timeline. But transform values in animation tab and inspector are different from each other. It causes problem when ı try to rotate player. It doesn’t rotate the way I ...
0
votes
0answers
27 views

Unsticking game objects

I have used void OnCollisionEnter(Collision collision) { collision.gameObject.transform.parent = gameObject.transform; } To stick two players together when ...
0
votes
1answer
12 views

Why when playing mixamo animation on my player the player ending and also while playing the animation inside the ground(terrain)?

The player have this components : Animator , Rigidbody , Capsule Collider , Third Person User Control , Third Person Character. I just downloaded mixamo animation for my character player. In my ...
0
votes
0answers
19 views

Design an object for a unity game? [closed]

I'm new to game development, I recently started a new game project. I use the unity engine for game development. Now, what is the best program for object (vehicles, plant, etc) designing? It should be ...
0
votes
1answer
41 views

How to draw unity gizmos with new input system?

I am using the new Unity Input system for my game. When I press a key, for example "Q", I want gizmos to be drawn. However, I can't subscribe to a keypress event with a Gizmo drawing ...
0
votes
0answers
16 views

Overridden movement function doesn't work

I moved from C to C# so I am a novice in Object Oriented Programming. I wanted to implement OOP in my character movement, but it didn't work the way I expected. My character is instantiated when the ...
1
vote
1answer
47 views

How to see which mouse button was pressed (Unity Input System)

I have switched my game to use the new Unity Input System, and I want to know which mouse button was pressed when an action is called. Here's how it's set up: Whenever one of these three mouse ...
0
votes
0answers
22 views

URP water showing Differently in on Runtime

I am using this water for my URP webgl build but the problem is it is showing differently on the editor. When I run the game then it showing correctly and when I build and run it in the browser then ...
0
votes
0answers
17 views

Why can't I play 2 animation track at the same time in Timeline for additional Camera?

I try to move and rotate camera at the same time in timeline. To do this, I added two animation track to camera. One animation track changes position of the camera. And the other one changes rotation ...
-2
votes
0answers
23 views

Game not build and running to android after making a keystore? [closed]

At the end of the build it says postprocess player and does not run the game on my android phone. It also says build succeeded.
1
vote
1answer
81 views

Component-based ability system for turn-based rpg

I am trying to make a component-based ability system for my new turn based game that I am working on. I not sure with the architecture and the approach I am following. So here my idea: Every Ability ...
1
vote
0answers
30 views

Unity InputSystem using Unity Events not maintaining values

I am testing out using the new Input System and cannot get the values from context.ReadValue<Vector2>() to pass into a private variable. The simple setup is ...
-1
votes
0answers
24 views

Check if list of gameObjects matches with the list of string [closed]

I have a list of strings defined in the script. I have a set of gameObjects. I want to check if any of the gameObject's name matches with the string. Since I am using list for both, the size of both ...
0
votes
0answers
22 views

Fail to install ML-Agents (python packages)

I have been trying for hours to install pytorch and mlagents with cmd, however I am getting pretty much the same error for each package I'm trying to install - ERROR: Could not find a version that ...
0
votes
0answers
20 views

Folding selected Parent Game Object in the hierarchy

I am folding selected parent gameObject with this editor script. It all works well but it also folds other expanded gameObjects which should not happen. For example under two different parents, if I ...
0
votes
0answers
31 views

How to add caves to a terrain mesh generated with 2D noise [duplicate]

Am I getting it right, that when I'll make a single mesh that represents terrain using unity's built-in 2D Perlin noise function, then I'll be able to somehow add caves using whatever (Perlin worms ...

1
2 3 4 5
274