Skip to main content

All Questions

Tagged with
0 votes
0 answers
28 views

How can I fix the rotation on a sprite normal map in Unity?

I'm making a 2D ball game in Unity v6.0, now in the process of adding some 2D lighting. The player ball is a circle sprite. To make it look like a sphere, the sprite has a normal map added as a ...
Jernious's user avatar
1 vote
0 answers
50 views

Creating a large number of GameObjects asynchronously

I am creating a 2D procedural terrain using many Tile GameObjects. To make this infinite (and more performant), I dynamically load and unload chunks based on the players position and a variable ...
Pow's user avatar
  • 424
2 votes
0 answers
117 views

How to prevent glitches in script-driven animations?

I have animations that are played via script. Occasionally, glitches occur at runtime that I can't explain. Here is an example: These glitches do not occur consistently but appear in almost all ...
Jachuc's user avatar
  • 45
1 vote
0 answers
38 views

How to hide a Sprite unless it is illuminated by a Light 2D?

I want to have a sprite that is invisible when outside of light, and visible when inside of light. I created a new Custom Lit Shader Graph in Unity 6 with the following setup: I then created a player ...
stevendesu's user avatar
0 votes
0 answers
33 views

Controlling Rendering Order of Multiple Canvases in Additive Scenes with Screen Space - Overlay in Unity

Question: In Unity, I have multiple additive scenes, each with its own camera and Canvas. The Canvases are set to Screen Space - Overlay and use their respective scene cameras. All Canvases are on the ...
Oozeer's user avatar
  • 1
1 vote
1 answer
92 views

Material with Shader Graph does not fit sprite shape

I am having an issue with shader graphs. I have made a shader to put textures on white sprites. The texture itself shows properly and I can tweak the size without any problems. The issue is that it ...
FSic's user avatar
  • 188
0 votes
3 answers
141 views

How to use a Shader Graph to layer a texture over a sprite without being affected by the sprite's alpha?

I have a hexagon sprite MainTex over which I want to render an outline texture SecondaryTex independent of the alpha value of the MainTex. Since I have a fairly large grid with many hexagons, two ...
Jachuc's user avatar
  • 45
0 votes
1 answer
85 views

Shrink a Circle's Radius Without Deformation Until It's a Solid Spot

I need to shrink the radius of a ring without deforming it by shrinking it's outline(the way scaling it would). I need to do this until the hollow fill is gone and its a solid spot. Here's an example: ...
PayasoPrince's user avatar
0 votes
1 answer
76 views

How to calculate the border hexagons in a grid with blocking elements?

I have a hexagon grid with cubic coordinates. I want to calculate clockwise all border hexagons for a given movement range. At the moment, I am iterating every neighbor that is not in the range and is ...
Jachuc's user avatar
  • 45
1 vote
1 answer
95 views

How do I render a sector (pie/cake slice) of a circular Unity 2D GameObject?

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
  • 465
0 votes
1 answer
88 views

Materials created from JPG images not working for new Universal 2D project with URP pre-configured 2D Renderer

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

Making 3D maps with 2d tiles for a top down game in Unity

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

Cannot resolve symbol 'detectCollisions' on Rigidbody2D

I'm simply trying to disable collisions for a Rigidbody2D: rb.isKinematic = true; rb.detectCollisions = false; as per: https://...
tariq's user avatar
  • 111
0 votes
0 answers
20 views

Adjusting Minimap Camera Viewport Indicator to Account for Occlusion of Camera by UI

I am working on a 2D RTS game in Unity. One thing I want to represent is a minimap indicator that shows the camera's viewport. I got it working, but it doesn't reflect how the camera is occluded by ...
Evan Smith's user avatar
1 vote
2 answers
182 views

How to make ball rotation in billiard look more natural?

I'm working on a billiard game in Unity (2D), where I used 3D sphere visually and I'm trying to make the ball's rotation look natural as it moves across the table or hit another. I've got the ball ...
Tishko Sabir's user avatar

15 30 50 per page
1
2 3 4 5
77