Skip to main content

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

Here is my script for opening animation. It basically sets the localPosition of an object out of the screen and then brings back in smoothly. The problem is I got ...
Said Polat's user avatar
0 votes
0 answers
31 views

In Unity 6, I have a NavMeshSurface attached to a floor with other items as NavMeshObstacles and this seems fine. The problem is,...
daijo's user avatar
  • 1
0 votes
0 answers
71 views

In a 3D world, I have a hockey puck-like body. I have made a mechanic where I can launch the puck with a slingshot mechanism. But the point of contact is determined with a raycast and the "sling ...
tomsseisums's user avatar
  • 3,366
0 votes
0 answers
128 views

I'm creating a simple bullet hell game for Android and I ran into an issue when diagnosing my game using the Memory Profiler where memory usage was increasing after each play-through. I had calls to ...
hoffer's user avatar
  • 1
0 votes
1 answer
58 views

When I first used it I remembered it as always calling the specific method once. So if I created a Jump Action with the key binding of space using SendMessage: and then created a method for it: ...
MrV's user avatar
  • 49
0 votes
1 answer
121 views

In Unity 6, there are multiple options for post processing, but I have been unable after many tutorials and AI advice and the Unity docs, and also installing free packages and removing them and ...
daijo's user avatar
  • 1
0 votes
0 answers
32 views

I'm working on a third person platformer. The player controller uses a hierarchical state machine taken from this video : https://www.youtube.com/watch?v=OtUKsjPWzO8 Using Unity 6.0. Currently, it's ...
ssnssnss's user avatar
0 votes
0 answers
58 views

I'm trying to put an object at the edge of the screen. I can get the edge and center of the camera converted to 3D space easily enough, however, I'm having difficulty with the dimensions of the object....
Scott Schuyler's user avatar
0 votes
1 answer
71 views

My first CustomPropertyDrawer fits on a single line, but... The Colorband List is putting it on a new line, wasting a lot of space. I couldn't find anything in the EditorGUILayout specifications or on ...
MXMLLN's user avatar
  • 117
0 votes
1 answer
118 views

I'm creating a third person game with companions following the player. The companions have a mechanic in which if they are too far away from the player and out of camera view, they'll be teleported ...
Redsam121's user avatar
1 vote
0 answers
214 views

I want to implement a panning system, and people said to me that the cursor should be locked in place during the panning. However in Unity all I could find is setting the ...
Tudvari's user avatar
  • 801
4 votes
1 answer
922 views

Suppose you were making a game in Unity and one part of the game was to store a high score, just stored as an integer. One could store the high score in Unity's ...
Robin's user avatar
  • 723
2 votes
1 answer
121 views

I'm trying to get materials working on a model imported into Unity 6, from Unreal Engine 5, but for some reason one of them isn't showing. I have played around with a few of the settings with no ...
Jason Crosby's user avatar
0 votes
0 answers
31 views

I a making a display with various messages prerecorded in a texture in a restricted environment I am not in control for Unity 2022.3.22f1. This is technically a flipbook which is animated differently. ...
Devilish Spirits's user avatar
1 vote
0 answers
84 views

Question: I’m facing an issue with in-app purchases (IAP) in Unity, specifically when using Unity version 2022.3.55f1, Unity In-App Purchasing v4.12.2, and Google Billing v6.2.1 for a consumable ...
Mohammed Rilwan Ibrahim's user avatar
0 votes
0 answers
39 views

I have about 100 circle colliders set to dynamic/continuous. They're all being dropped into a "hopper" at the start of the level. I've noticed that this is: A) Tremendously expensive (as I ...
Programmer9000's user avatar
0 votes
0 answers
42 views

I'm trying to create a simple pie chart for my game (a strategy/simulation game) to show population demographic data for a province, but I'm struggling to figure out how to detect which slice is being ...
Jax's user avatar
  • 474
1 vote
0 answers
128 views

I'm working on a 2D game in Unity where the world is 3D and I have an orthographic camera pointed 45 degs to make it look 2D. I'm using the method here to fix the distortion that occurs. My question ...
Volcanis's user avatar
0 votes
0 answers
45 views

I'm having a problem with the code below. My player is always moving at the same speed. Even if I give my boast variable a very small value, the speed remains same ...
Muhammad Hashim's user avatar
0 votes
1 answer
54 views

My Unity game has graphics designed for aspect ratios of 16:9, 16:10, 4:3, 3:2, and 19.5:9. This worked for mobile. But now I want to create a PC version for Steam, and I have to deal with the user ...
donut's user avatar
  • 111
1 vote
1 answer
155 views

I have a circular GameObject in Unity 2D with a SpriteRenderer attached. I want to attach a custom component to my ...
Robin's user avatar
  • 723
0 votes
1 answer
70 views

I've used FromJson in Unity/C# a dozen times, and yet for some reason I cannot figure out why this one's not working. Here's the code that does the parsing: ...
rpatton583's user avatar
1 vote
0 answers
118 views

I have a CCD pipeline set up using Addressables and they seem to load perfectly fine from Unity's CCD buckets but when I build for Android and test on my mobile device, it leads to a 400 error. Here ...
zz zz's user avatar
  • 11
0 votes
0 answers
67 views

How to make it so that when using burst there are no seams between cycles of its spawning? The burst cycle should start at the beginning of the system cycle, i.e. at 0 Demonstration of the problem ...
White Raven's user avatar
0 votes
1 answer
126 views

I have Unity version 6000.0.30f1, and I've started a new 2D project with the option Universal 2D - ...
John Moore's user avatar
0 votes
1 answer
220 views

I'm working on a 3d game in unity that looks 2d from having an orthographic camera and 2d sprites, similar to Enter the Gungeon (https://twitter.com/dodgerollgames/status/593625936131653632?lang=en). ...
Volcanis's user avatar
0 votes
1 answer
228 views

I'm working on a 3D game in Unity that requires lock-on, or Z, targeting found in games like Dark Souls and Legend of Zelda: Ocarina of Time. The code that I have achieves my intended goals fairly ...
FireStriker's user avatar
1 vote
0 answers
53 views

I have a player capsule which I want to face the same cardinal direction as the key pressed. For example, pressing W will make the player face the camera's current ...
Yong Yun Jing's user avatar
1 vote
1 answer
703 views

I'm making a 2D game in Unity that is set-up in 3D similarly to Enter the Gungeon, where I have an orthographic camera rotated 45 degrees. This makes sprites look wrong and I've seen two main ways to ...
Volcanis's user avatar
0 votes
1 answer
109 views

I'm making a 3D game and I was trying to make movement relative to player rotation for several hours, but I failed. Here's the code, maybe I made a mistake there. Also, player doesn't rotate. ...
free2win's user avatar
1 vote
0 answers
27 views

I’m trying to recreate the DCPU-16 for Unity that has a console and can render the output to a TMPro text on a canvas. What the code should do is display A B C onto the TMPro text, but nothing appears....
Joshua Blankenship's user avatar
0 votes
1 answer
162 views

In Unity, using URP/Shader Graph, I have a peculiar problem. I have a warp tunnel that has a texture and a shader "animation" to make it appear as if the player is moving forward through it. ...
Battle's user avatar
  • 1,285
0 votes
1 answer
93 views

I am trying to create a system for daily events in Unity, but I am facing an obstacle where performance and memory are very sensitive for me,The DailyEvent consists of a list of DailyEventAction, ...
Ahmed Dyaa's user avatar
0 votes
2 answers
276 views

I'm trying to synchronize 3-4 thousand game objects' positions and rotations. I need performance for my Unity game to remain relatively high (30+fps) and to keep the amount of data sent as low as ...
Tony ThaDee's user avatar
1 vote
0 answers
39 views

I would like to be able to add certain simple graphical effects to objects in my game. For example, I want dead enemies to fade out, I want enemies that get hit to flash white, all easy stuff. So far ...
Lara's user avatar
  • 121
0 votes
0 answers
32 views

When connecting a Character Controller component to the character in Unity, it starts to rotate uncontrollably. Without the Character Controller, everything works fine, but the character does not walk....
Pixel Play's user avatar
0 votes
0 answers
130 views

I have a character and I would like to add a simple blink animation to it. But the trouble is that the character doesn't have any bones controlling it's eyelids, and there are no existing blenshapes ...
FrontEnd's user avatar
  • 1,789
0 votes
0 answers
38 views

I'm using Unity to build a game, where players can customize their robots with different parts of a variety of sizes and lenghts. For example, players can put a pair of very long legs with an average ...
Weifeng's user avatar
  • 101
0 votes
0 answers
81 views

I’m making a racing game in Unity and every time the car touches the ground, it just jumps. I’ve seen people complaining about it multiple times, but usually adding mass of about 2000 to the car or ...
Lumoš Lumošovský's user avatar
0 votes
0 answers
183 views

What I'm doing I'm using Unity's Spline package and I'm trying to move SplineAnimate objects across a Spline, similar to a racing game's mini-map UI. ...
PayasoPrince's user avatar
0 votes
0 answers
44 views

I have a model which has many different parts as children gameobjects. If I select the model in the project view I can change all of the materials (incl children) in the materials tab in the inspector,...
FrontEnd's user avatar
  • 1,789
0 votes
1 answer
82 views

I have 2 scriptable object inventories; one acts as the starting inventory and the other acts as the current one. I add objects to the current inventory but I set it's values to the starting inventory ...
bob maximus's user avatar
0 votes
0 answers
56 views

So i want to design an editor which has the following requirements. Suppose i already have a prefab called Player.prefab and script attached as Player.cs And have a scriptable object called ...
Aman's user avatar
  • 1
2 votes
1 answer
237 views

I'm trying to instantiate prefabs in Unity, but I want to do it from a script that doesn't inherit from MonoBehaviour. I understand that a ...
CheckerT's user avatar
  • 176
1 vote
1 answer
94 views

I have a StateMachine component that includes a list of "transitions". Each transition includes an origin state, a condition, and a target state. The transition should happen if the object ...
Erel Segal-Halevi's user avatar
1 vote
0 answers
122 views

CONTEXT: I am implementing a basic 3D character controller from scratch in Unity. For collisions, I do a capsule cast in the direction of the player velocity and use the collide and slide algorithm to ...
Numdoo's user avatar
  • 11
0 votes
0 answers
30 views

Starting in Unity 2022.3 versions, this started happening - In my scenario, I have a ball bouncing on a surface (e.g on concrete) and no matter what the friction values are, the ball basically ignores ...
Omer Simchoni's user avatar
0 votes
2 answers
113 views

What is the best way, in terms of performance, to remove a list (a group of elements such as integers or strings) from another list, other than using for or foreach loops? For example, is there a ...
Ahmed Dyaa's user avatar
0 votes
2 answers
275 views

I have the following Update() code which calculates the approximate number of loops per second: ...
user27520763's user avatar
0 votes
1 answer
136 views

I encountered a problem in Unity related to the Character Controller, namely with checking whether the player is on the ground or not (isGrounded). A player walking down a slope with a minimum angle ...
Dexport's user avatar