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
0 answers
8 views

What specific lighting property creates "the unity look"

Nearly all unity games have specific "unity" look. It is quite obvious that it is caused by the rendering pipeline and shading, but I was wondering which specific part is responsible for ...
Tribski's user avatar
  • 143
0 votes
0 answers
4 views

Pass texture array into shader and paint mesh vertices depending on vertexattributes

Well, I'm a newbie with shaders, I'm just trying to paint a mesh depending on the vertex attribute passed with one or another texture. The idea is to achieve this, for example: For this, I have been ...
z3nth10n's user avatar
  • 141
0 votes
1 answer
31 views

Scrolling the screen left, right, up and down based on cameras rotation in Unity with C#

I'm making a building game in Unity and C# I want to be able to scroll the screen in all 4 directions when in building mode. At the moment, I can rotate the camera and scroll the screen left and right,...
Guybrush Threepwood's user avatar
0 votes
1 answer
43 views

Getting smallest possible build filesize on Win build (other than optimizing assets)

Disclaimer: I'm currently just exploring techniques and trying to save literal kilobytes just to see if I can. Please don't give me speeches about how development time is not worth it. So I got a bit ...
SurDno's user avatar
  • 41
0 votes
0 answers
38 views

How to begin my game dev journey after learning C++ [closed]

I have soon finished to learn basics of C++ (from LearnCPP tutorial serie), pretty beginner at it but I don't feel "too lost" while programming small code snippets to practice. Biggest ...
Bromor's user avatar
  • 1
1 vote
0 answers
50 views

Can you append values to an appendbuffer and then immediately read from that same buffer?

I am looking to achieve the following: I have a compute shader that receives a Texture2D as input, where a small percentage of the pixels in the texture are white. ...
Daniel Cardin's user avatar
0 votes
1 answer
46 views

Why is my enemy in unity 2d not moving?

So I'm trying to make a 2d unity platform game for a school project but I can't seem to get the enemy to move. can anyone help? much appreciated!
TheEpikDuck's user avatar
0 votes
1 answer
34 views

NavMesh Runtime Generation In Specific Areas

Unity allows the runtime generation of NavMesh surfaces with the Unity.AI.Navigation package through the BuildNavMesh method. However, this function re-bakes the entire NavMesh in the current scene, ...
Alec McKay's user avatar
0 votes
0 answers
12 views

Is it possible to prevent a graphic raycaster blocking 2D rays in different layers, from a different camera?

I have a graphic raycaster attached to a canvas, with the blocking layer set to exclude all layers except "UI": ...
arcadeperfect's user avatar
1 vote
1 answer
68 views

2D Sprite components causing text (TextMeshPro) components to be hidden in Unity

Edit: Depending on where my game character is located in the map, some text (TextMeshPro) components get hidden/turn invisible. I have tried to figure out what is causing this. With the help of a ...
Cezar P's user avatar
  • 43
1 vote
1 answer
78 views

How to clean up list entries when objects are destroyed in Unity?

We are developing an economic sandbox somewhat similar to a mixture of The Guild and Kenshi. In this game, both the player and the NPCs will often create and destroy (consume) various objects. The ...
stack_ndx's user avatar
0 votes
0 answers
48 views

Can layermask be made for colliders in Unity? [closed]

I use collider to import a few objects in Unity. And these are triggers. Actually, what I want is, for example, there is a wall in front of me and a key behind it, and I cannot get it from in front of ...
Dark's user avatar
  • 1
1 vote
0 answers
20 views

How can I refer to the render target in Unity after postprocessing?

In Unity's Universal Render Pipeline, there is a PostProcessPass class in PostProcessing.cs. What I would like to know, how I ...
Fox1942's user avatar
  • 111
1 vote
0 answers
29 views

Is it possible to add new waypoints to Dolly Track in Unity CinemachineVirtualCamera on the go?

I'm making a racing game "on rails" that utilizes generated map (similar to outrun). The map is made out of chunks that appear every time player crosses a Trigger area on the chunk that is 3 ...
SirResnick2's user avatar
1 vote
1 answer
458 views

In the Unity editor, why are the coordinates of a newly created root object not set to 0,0,0 when the object is at the origin?

My initial coordinates of a newly created object without a parent are not 0,0,0 They’re supposed to be at the origin. Instead they are some random number. And how can I set them to zero without moving ...
Mich's user avatar
  • 131
0 votes
0 answers
33 views

Unity AAB build breaks with "split application binary" checked

I am currently encountering a challenge similar to the one described by a fellow Unity developer in this forum thread. I am using Unity version 2022.3.10f and configuring asset bundles while building ...
ForBuy Rust's user avatar
1 vote
2 answers
30 views

Best way to implement a carrying tray in VR using Unity

I need a way to carry objects on top of other objects in VR without jitterness causing the objects to fall through a tray for example. I've tested with rigidbodies having very high friction, this does ...
Richard Muthwill's user avatar
1 vote
0 answers
17 views

Do objects loaded from AssetBundle need to be unloaded after they are no longer in use?

For example, in the LocalizationProvider class a Sprite is loaded this way ...
Serg's user avatar
  • 363
0 votes
2 answers
64 views

Simulate Velocity For A Projectile Moving Along A Spline

I'm using Unity's latest Splines package(v2.5) to move a projectile across a spline with speed. It works perfectly and the projectile moves across the spline to it's target with linear speed. But I'd ...
PayasoPrince's user avatar
3 votes
1 answer
45 views

Red thing inside of capsule object that shows when running the game in Unity

There is a red thing inside of my capsule object that shows when running the game in Unity. How do I make it invisible? I have tried looking at the capsule collider, but I couldn't find anything to ...
Cezar P's user avatar
  • 43
0 votes
1 answer
87 views

NullReferenceException when object is not null

So in the following code: ...
sammyiscuul's user avatar
0 votes
0 answers
51 views

Why can't I limit FPS inside Unity editor?

I have an Unity app that requires a stable fps in editor. The fps itself is really high anywhere from 200 to 280 the problem is that is not consistent. I tried to limit it with the code belove but it ...
Ivan's user avatar
  • 317
2 votes
1 answer
54 views

Detect if a key other than "this" key has been pressed

I'm wondering if there is a way to detect if the key being pressed is NOT matching a specific KeyCode. I tried using: ...
sammyiscuul's user avatar
0 votes
0 answers
21 views

Why when switching between scenes the loading transitions is loading empty scene before loading the scene in index 1?

I have two scenes: Opening Scene and Game Scene. The logic is to play the Opening Scene and then fade out then when the Game Scene has loaded to fade in when the Game Scene is already loaded. the ...
Daniel Lip's user avatar
  • 1,727
0 votes
1 answer
66 views

Optimal Approach for Transmitting and Rendering Large Pixel Art Game Maps in Unity

I'm working on a pixel art game in Unity, and my backend (Which is actually written on Golang) has generated a massive dataset of tiles for a 1000 by 1000 world (it could be even more). I'm wondering ...
Resorter's user avatar
0 votes
1 answer
87 views

Converting number in name of gameobject into alpha keycode

So I have no idea if there is a way to do this, but I'm trying to find a way to turn an alpha number in a game object name string into an Alpha key code, which I'm going to use in an Input.GetKey. ...
sammyiscuul's user avatar
0 votes
1 answer
119 views

Inconsistent Speed Of A Projectile Traveling On A Bezier Curve

What I'm doing: I'm moving a projectile to it's target along a Bézier curve with one control point. The projectile moves from Transform A to ...
PayasoPrince's user avatar
0 votes
1 answer
41 views

Unity 2d with the Android platform crashes with the urp package

I’m new to developing lights in Unity, I looked at the tutorials and decided to use the URP package. When installing the package, the project crashed at first, but then I restarted and the textures ...
Lekr01d's user avatar
0 votes
0 answers
37 views

Problem with light in Unity2D

I'm new to working with lights in Unity, I watched a lot of tutorials and decided to use URP. It seems like I have everything set up, but when I set the lighting, the light doesn’t fall on the ...
Lekr01d's user avatar
0 votes
1 answer
39 views

Unity RB Controller Jitter on a Moving Platform

Brief Description: I have a RB based character controller that I want to move along with my Train platform (non physics based) when the player steps on it. Main Problem I manage to make the player ...
Vav Avagyan's user avatar
0 votes
0 answers
26 views

How to trigger a local file download for a screenshot from a Unity WebGL game?

Is it possible for a Unity WebGL app to trigger a local file download - binary data generated in the app, somehow triggering a browser download?
ina's user avatar
  • 284
0 votes
0 answers
27 views

Add a controls instruction overlay to game HUD

I was wondering how I could make an instruction panel for the users of my game in Unity. I will add a photo to this post that shows an instruction panel. Any explanations would be much appreciated!
Cezar P's user avatar
  • 43
0 votes
1 answer
66 views

Unity Mirror Networking Audio Behaves Differently on Host and WebGL Client

I am creating a system in Unity using Mirror Networking which will only require one host/server and one client. It is a WebGL build so the client will connect on a browser. I want to send commands ...
Michael's user avatar
  • 41
0 votes
1 answer
25 views

OnCollisionStay outputs strange contactpoints

I am currently trying to make a pen draw on a paint. I am searching for contact points on the paint but there is too much contact points than expected. I'm not sure to properly understand how ...
Hazard4U's user avatar
0 votes
1 answer
20 views

Seamless way to have touch be mapped to Input.mousePosition again in new input system

had not expected such a basic mapping to not come as default... what is the simplest way to do that simple mapping - that does not require modifying existing scripts?
ina's user avatar
  • 284
0 votes
1 answer
69 views

How to Code Rhythm Sync

I'm trying to make an object's movement automatically sync to the music in Unity. I want a way to get the "key points" (when there is a loud beat) and make the object dash at those moments. ...
Howler's user avatar
  • 169
1 vote
0 answers
84 views

Trying to implement undo system

I've got a problem with my undo system that ive made, the idea is I want to make a sort puzzle game like this => https://www.youtube.com/watch?v=VdXi9UQhOng WHAT I UNDERSTAND There is some ...
YouCanCallMe Syarif's user avatar
1 vote
0 answers
35 views

How to fix collision for objects beyond their green lines?

As you can see in the image those are collision lines but its kinda of disingenuous as there are I would say invisible collision blocks on the X's, I tried messing around with the sorting layers and ...
Thecodingnoob's user avatar
1 vote
1 answer
62 views

Flying AI shakes when chasing and avoiding obstacles simultaneously

I've got a problem with my flying AI in Unity. When it just chases a target it's ok, but my system contains avoiding obstacles so when it starts to do it, it shakes weirdly. As I understood using <...
kotan4ik's user avatar
1 vote
1 answer
54 views

What would be the best way to gradually increase the speed of a 2D arcade game with gravity physics in Unity?

I'm somewhat new to Unity, so I'd like to hear some more experienced thoughts on this. I'm using C# if that helps. I'm currently working on an arcade game somewhat similar to "Doodle Jump" ...
soxyo's user avatar
  • 13
0 votes
0 answers
33 views

Why do my trigger zones change rotation randomly on gameStart in editor?

I'm now doing a racer on rails like "Outrun". I do have a cool Script from internet that makes the camera and the player follow the Waypoints. The Waypoints are Trigger shapes. I have a ...
SirResnick2's user avatar
0 votes
0 answers
30 views

How to load a whole folder of assets without using a Resources folder?

I have a folder full of images that I want to keep ready in a script. The Unity way to do this is to have a MonoBehaviour with, for example, a ...
AyCe's user avatar
  • 111
0 votes
1 answer
33 views

Infinite character loop when trying to play Dialogue

I am trying to make a dialogue system in Unity by following this tutorial: (29) 5 Minute DIALOGUE SYSTEM in UNITY Tutorial - YouTube. There is a slight twist to this and that is that I am triggering ...
Akshit Chaturvedi's user avatar
0 votes
1 answer
46 views

Transparent Composite Object In Unity HDRP

Potentially a big question, but it seems like it should be simple enough. I have an object in my game composed of multiple parts (connected GameObjects with their own renderers). I want to make this ...
Keith Stein's user avatar
0 votes
1 answer
34 views

How can I instantiate a prefab in a canvas and have it positioned relative to its parent?

I am trying to load, at run time, a UI prefab and have that display on a canvas. I was following the directions found on this forum. I am able to get it to load and display, but it is not showing up ...
tatmanblue's user avatar
0 votes
0 answers
63 views

In Unity 2021.3.29(built-in render pipeline, entities 0.51.1-preview.21), what is the proper way of DOTS based collision detection?

Packages Installed: Entities: com.unity.entities Version 0.51.1-preview.21 Documentation URL: https://docs.unity3d.com/Packages/[email protected]/manual/index.html Physics: com.unity.physics ...
rasputin's user avatar
0 votes
2 answers
65 views

Bouncing balls miss collisions, bounce the wrong direction, of lose momentum on one axis when hitting a corner

I am making a 2D game where balls bounce from the edges of the screen, However, there seem to be two types of issues with this kind of bounce method, and every tutorial I checked uses the same method. ...
ZozeR's user avatar
  • 42
0 votes
2 answers
76 views

Euler Angle X is wrong after using Quaternion.LookRotation

I have an direction that I want the local player hub & camera to rotate at. The game handles this by using euler angles which Y represents the hub rotation on the horizontal axis & X ...
Xprt's user avatar
  • 3
1 vote
1 answer
54 views

Why won't my bullets shoot?

I am making a top-down shooter in Unity (following a Brackeys tutorial for the top-down shooting mechanic). When I press the left mouse button a bullet prefab spawns, as it should, however there is no ...
John Hughes's user avatar
0 votes
1 answer
51 views

Custom Shader leads to wonky clipping

I have a custom shader that will change vertex heights based on texture color. My big issue is that some areas of the mesh texture peek through when they should be hidden. What's going on here? plane ...
Jacksonkr's user avatar
  • 229

1
2 3 4 5
324