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
20 views

FullSerializer Update serialized property name

Currently we have some ScriptableObjects that are referenced by their name. This comes with some issues as names may change and also they don't have to be unique. We would like to switch to UUIDs. <...
0
votes
1answer
37 views

How to fix lag in 64 bit Android devices

My game's FPS drops to 30 - 8 FPS on any 64 bit Android device but is at 59 - 60 FPS on an even lesser 32 bit Android device. I've tried unchecking Development Build on Build settings and I've tried ...
0
votes
0answers
34 views

How can I make the flag to be true and false but each time only once?

This simple class is attached to some objects in the game : ...
0
votes
0answers
13 views

How I randomise a list of audio clips in Unity and remove it from the list once the clip is finished?

I have 4 audio clips. When I play a press a certain button in Unity, the data is sent to MAX/MSP and the audio is played. I created a list a signals (As shown below in the code). What I want is that, ...
1
vote
0answers
30 views

Shader graph in Oculus (Screen position)

I have created a blur shader graph to blur a material. It works perfectly fine in the scene mode and also in windows application. However it does not work as expected in Oculus VR. That is, the ...
0
votes
1answer
61 views

I am working on an Quiz game i am trying to get user input from the player in ters of button by adding listeners

but i get no touch input when i make click on gameplay, i have added onClick().Here is the code...................... ...
0
votes
0answers
20 views

Prevent feet from moving for a Unity character from a Mixamo animation

So my question isn't about root motion, but rather just keeping the feet in place on the ground for a Mixamo animation... I tried to just delete the feet and toes in avatar configure, but nope... I am ...
0
votes
1answer
17 views

Collision with supposedly aligned box-colliders

I am quite new to game development, and I am trying to create a top-down game with 2D sprites, but with a 3D feel to it. I managed to do so with the 2D engine by setting ...
0
votes
0answers
15 views

Render object transparent with camera instead changing object render mode

I have a pretty large area where I want to show the floor with 60% transparency using a so-called Opacity camera (an idea). I know I can set mesh rendering mode to transparent and then decrease the ...
0
votes
0answers
26 views

Custom render feature local

Is custom render feature suppose to be global? As in the values set through it affects all materials that share a common name? I am looking to set a value for each of my materials and unfortunately ...
0
votes
0answers
21 views

Unity calculating the boundaries of camera in 2d game

So im starting to learn Unity, working on a top down 2D game. I know I can use something like Cinemachine to clamp my camera to a 2DCollider, but I decided to try it to implement this manually as a ...
0
votes
1answer
40 views

My runtime (game) won't reset back to how it was?

I increase the scale of the objects when it passes a certain time or in this case, my "difficulty" ...
12
votes
1answer
1k views

How to simulate a liquid like “The Cook” or “Bake it”?

I want to make a simple liquid something like these gifs:
0
votes
0answers
19 views

Player Inputs Images in Runtime

I want the player to drag & drop or select images on his device and input them in playtime. So that I can use those images to select one randomly and show them. the problem here is how can I get ...
0
votes
1answer
63 views

Converting shader to ShaderGraph

Is there a way to convert the below piece of shader code to shader graph? I am not sure how to find float2(i, i) in shader graph. ...
0
votes
0answers
27 views

Monster Spawner Reference Issue

I have a monster spawner that spawns the "enemy" kid which is red, and it has a line in the script where it references the "player" gameobject's transform. Before I made the ...
0
votes
0answers
16 views

Water shader not working on some machines in Unity3D?

I've got a report from a player (1 in ~100), that the water isn't rendered on his machine. I use this shader: https://roystan.net/articles/toon-water.html I've made a small change so I can use it in ...
0
votes
0answers
10 views

concerns about android apk compatibility

Hi everyone =) i'm planning on making a game on Unity, the idea is that my friends could play the game, as mostly of them do not own a computer, it should be developed for android. Two of my biggest ...
0
votes
0answers
10 views

Unity HDRP draw order doesn't change when asset is set to higher priority?

I don't like the way that light got baked into part of my mesh. It might make sense for me to try to blacken that area of the lightmap in Photoshop, but first I tried to just hide it with a probuilder ...
0
votes
0answers
20 views

Simple Car Animation Acceleration Too Slow

I am trying to make a very simple car animation where using the arrow keys, I can make a car move around. I am using wheel colliders and some code that goes like this: ...
0
votes
0answers
28 views

why does my objects only spawn once or really slowly?

...
0
votes
1answer
116 views

Unity Build GPU Performance

I have been banging my head against the wall with this for few days now with no improvement.. The problem is that after build my project keeps using over 30% of the GPU. Even in the editor it takes 20%...
0
votes
1answer
87 views

Best way to save game data in Unity

I am currently developing a game in unity and I want to add some sort of saving system that saves the following: Locked / unlocked level. The amount of money the player has. Items / perks that the ...
1
vote
1answer
29 views

How do I share a downloadable WebGL build in Unity?

When I make a WebGL build for my project, I get a folder that lets me click a .html to play my game in a browser. Is there a way I can share a folder like this for playtesters? I tried sending a .zip ...
0
votes
0answers
17 views

Get and destroy gameobject component of same type

I want to destroy any graphic component on a gameobject , example is image,raw image, sprite , ect .But i don't have the list of all graphic component so i don't know how to loop through it . The ...
0
votes
0answers
20 views

Unity UI Chat Message Expanding Bubble

How do you set up Unity's UI Layout system so that the chat bubble changes in size automatically based on the length of the text? What's the right use of Layout and Content Size Fitter elements? How ...
2
votes
1answer
41 views

How do I increase the spawn rate of an object as the “difficulty” goes on?

I just want my objects to spawn in a faster rate as time goes by. The print(SpawningInBetween); print out shows the percentage of the difficulty overtime. This is ...
0
votes
1answer
37 views

Performance problem when multiple enemies are grouped up

I have enemy with simple behavior: Reach the player's current position. In game are increasing waves, which are increasing the number of enemies. But when are more enemies (like 14), and they got too ...
1
vote
0answers
17 views

Smoothly resize minimap camera rect width and height

I have an orthographic camera that is working as a mini-map. Now I want to make it resizeable using mouse drag. I have applied some UI beside my minimap camera rect and those UI resizing perfectly ...
0
votes
0answers
14 views

How to make it possible to change the width of the stripes?

I am making a shader to create stripes based on this tutorial, but I cannot set the width for each stripe and make a shader that accepts light. ...
0
votes
0answers
24 views

How to fix problems with connecting VsCode to Omnisharp server?

I'm using sourcetree for version controlling for Unity. I'm using VsCode version 1.45.1 and when sourctree is running on pc and I open a script on my Unity project, VsCode can't connect to Omnisharp ...
0
votes
0answers
38 views

Unity game crashes when opened on some computers but not all

I'm facing a weird issue where every time I attempt to run a Unity application, it just crashes with no error message or log being generated. I tried running the game, it works on some computers (3) ...
0
votes
1answer
45 views

After baking my lights again in Unity, my character is black?

I had to re-bake my scene several times before getting the look that I wanted. This last time, the scene looks great, but my characters are now very dark and the playable character is completely black....
0
votes
0answers
28 views

Why does the size/extents of a bounding box of a BoxCollider in Unity show the Z element being double what it is?

As you can see from the picture below, I fetch the BoxCollider inside CollisionHandler and Debug.Log() it to the screen. In this case, I'm logging the size, but the ...
0
votes
0answers
12 views

Getting ParticleSystemRenderer in inspector

I have a component that manipulates the sorting order of a given renderer, for the sake of managing UI layering. It looks something like this: ...
0
votes
0answers
23 views

Whenever I grapple onto a RigidBody, the grappling/reeling mechanics glitch out in Unity. How can I fix this?

I'm trying to make a game in Unity 2020.1, the feature I'm trying to prototype and test is a grapple gun. The grapple gun should grapple onto walls, and platforms reel the player in. I've implemented ...
0
votes
1answer
52 views

How to detect which car T-boned the other in a collision?

Setup The game has cars and collisions, and I'm trying to create the following system: When a car T-bones another, the one getting T-boned is destroyed; When the cars collide laterally (usually just ...
0
votes
0answers
7 views

maya root motion animation jumps back and forth in Unity

I have a custom made model from Maya that is supposed to have root motion. But when I put the animation into the animator in Unity it keeps jumping back. I have configured the model in Unity as Root ...
1
vote
0answers
25 views

Best practice for toggling between ragdoll and CharacterController

One feature of the game I'm working on is that if a character is hit with a certain amount of force, it will temporarily ragdoll, then get up off the ground after a small period of time. This ...
42
votes
1answer
3k views

Why use convex polygons and not concave ones in path-finding?

I read in Unity's path-finding documentation that they use convex polygons because there won't be any 'obstruction' between 2 points. Then they add their vertices as nodes along with starting and ...
0
votes
2answers
45 views

Game shifts to edge of screen when clicking Play button in Unity

I’m attempting to help my young daughter who is trying to learn Unity. I know very little about the program. Recently, she developed a basic game consisting of a dragon and a person. When she presses ...
2
votes
1answer
53 views

How to develop both a client and headless server together in Unity

I'm making a multiplayer 2d shooter platformer in unity. And after studying the different options to program an authoritarian server and with the great help that many of you have already provided me ...
0
votes
0answers
41 views

What is wrong with my save/load system?

The SaveSystem class : ...
1
vote
0answers
16 views

What are the correct steps to add Admob to Unity?

The official documentation leaves out really important steps. Adding 'cocaopods' and 'Google Play Services' They are just listed as prerequisites without even any links. Another confusing thing is ...
0
votes
1answer
29 views

How to make one material on object with many parts inside?

I have a weapon witch have many parts, it also have many materials. Do I really need to make it like that? It's like about 8 mats! :(
0
votes
2answers
68 views

How can I draw orbit paths for a solar system?

I’m trying to make the orbital paths visible for my solar system simulation game. I have most around with trail renderers and solid line sprite but not achieving the desired look I want. I’m hoping to ...
0
votes
1answer
20 views

Changing colour of multiple prefab instances when dragging over them

So I am having some issue trying to get it so that when I touch/mousedown that an instantiated prefab changes color and then with mouse down still any other prefab that mouseenters, that prefab should ...
0
votes
0answers
7 views

Fading alpha color with overall time. It's working but I need some help with some things to fix/change/add

This is more or less what I wanted, It's working in general but there are things to fix/add/change : ...
0
votes
0answers
33 views

Box2d on authoritative server for Unity client

I'm creating a multiplayer platform and shooting game in unity, using unity2d's own physics system (box2d). But the truth is that I am quite lost in the creation of an authoritative server in c ++. I ...
0
votes
0answers
13 views

Canvas Drag and Drop children within parent

I have a working drag and drop script for gameobjects within a canvas panel. I would like to prevent the panels children from being dragged outside of the panel. I have a somewhat working (although ...

1
3 4
5
6 7
261