Random Points on a Circle

I am trying to develop a game in Unity where you jump from 2D planet to 2D planet, each with its own gravitational pull (The game is 2.5D, technically, but all movement is along the X and Y axes)....

Unity 2D side scrolling game stutter/jerk/lag issue when run on iOS devices

I just want to say thanks in advance for anyone you can provide some help on this we're completely stuck at the moment. Project Scenario : -> 2D side scrolling game with simple 2d sprites ->...

Converting coordinates placed on 360texture plane to spherical

I have a 360 spherical video. I use this video as a texture on a sphere in Unity. Inside the sphere is a camera and this functions as the setup for my Virtual Reality experience. Pretty basic. I...

3D AR Markers with Project Tango

I'm working on a project for an exhibition where an AR scene is supposed to be layered on top of a 3D printed object. Visitors will be given a device with the application pre-installed. Various...

Unity C# Maze Algorithm Assistance for Multiple Different Pipe Segments

I'm trying to make a video game in Unity using C# that involves basically moving through randomly laid out pipes in a 2D grid of a fixed size. I've poured hours of work into the texture details...

How to stop player from automatically jumping on a moving platform?

I made a moving platform that goes vertically top to bottom and then bottom to top and so on. Platform moves fine but placing my player on it makes my player unstable. When platform moves from top...

How to create a time penalty with coroutine in Unity?

I am working on a 2D game in Unity. The game is limited to 60 seconds. I would like to have a time bomb which causes time reduction when the player hit the bomb. In my script, I have a boolean...

Interaction of 3d objects in 4d space in Unity

I have an idea for the realization of Hogwarts fic "Harry Potter and the Methods of Rationality". This is not explicitly mentioned, but by describing the possibility of imposing space and the...

Unity 2D: Check if sprites overlap (c#)

I'm making a small matching mini-game in 2D Unity in which players drag and drop different images(sprites) that are in the same category. I have made a drag and drop script that works well, but I...

(Unity) Need to place object at specific coordinates

I only recently started using Unity, and converting my pre-made code to it. Now I am trying to make an object appear at a specific coordinates, in 2D. I'll try to explain. The game has main...

How can I use baked lighting on sprites? / How to light up a large area in 2D?

I'm having trouble figuring out how to light up large area(s) of sprites in Unity 2D. My previous knowledge on Unity's lighting is zero. I first tried using a large amount of point lights and...

How to create 3D tile maps using a Plane object divided into tiles?

I want to create a 2D plane centered on 0,0,0 in 3D world space. Then, I want to define this plane in 2d tile coordinates. So e.g. a plane divided by 3 tiles would become a map of an array...

Why does my camera not show items unless I move it to a negative Z position in 2D

Good day all I am working on a basic 2D game to get the hang of using Unity. I wrote a function that allows me to constrain how far several game objects are allowed to move that I use for both the...

Unity game - generate circuit with line drawing

I'm not a very beginer in unity, but not so far ;). Today, I want to make a game which is a mix pool pinball. The game physic is quite ok for me, but my big challenge is : what i want to...

Changing from x-y to x-z dimensions for dragging using the shift key- Input Latency problem

As a part of my project, I have developed a sphere that a user can move utilizing a mouse. Since dragging in Unity can only be done taking into account two dimensions at a time, I developed a...

2D Character not jumping issue in Unity

I'm new to Unity and C#, trying to make a 2D game. The animator controller screenshot with all the transition is attached, the (isGrounded) bool from idle to jump is false, from jump to idle is...

Unity: Project/Draw 3d object onto 2d plane

I want to recreate something like the image below. I created a quad, placed it in front of the camera, then added a WebCamTexture to play the camera feed on the 2d plane. I then want to place a 3d...

Audio 3D in Unity with ARCore

I downloaded the ARCore example for Unity, and I used HelloAR scene. When the app recognizes a flat place, it shows me my 3D object, to which I added 3D audios, but in spite of moving, the audio...

Draw a line with Edge collider 2D using LineRenderer programmatically, but the collider is in wrong place in Unity

I want the player to draw a line through the mouse, and this line has a collider, but this collider appears in the wrong place. I have tried these methods with ScreenToWorldPoint,...

When using an image as a button how can I ignore the transparent parts when detecting a click

I'm creating a 2d game with my brother in Unity and I am working on the interactive map (Using pixel art). I want to place different territory images together like puzzle pieces, but when it...

Why does Unity's Legacy Vertex Lit disable my code that sets the color of tiles on a 2D tile map?

To start, I have a bird eye view 2d tilemap that I generate procedural. I color each tile using TileMap.SetColor( new Color(r,g,b,a));. This works very well with the default shader that does not...

Instantiate a prefab pointing in the direction of another object

The Issue I'm making a 2D Unity game where the main weapon of your character is a fireball gun. The idea is that a fireball will shoot out of the player's hand at the same angle the player's hand...

Unity 2D GameKit MovingPlatform not moving

I am learning Unity with the 2D GameKit Tutorials on Unity Learn. In that they use the MovingPlatform to move Ellen from one point to another. When I place the MovingPlatform in the scene, it...

Find point on sphere given radius, center and 3D position

In unity, I have built a game where I can place models using the mouse cursor (by dragging them to the scene). What I want is to be able to keep the distance between models unified, i.e. every...

JsonUtility serializing a struct to JSON Unity

I am some issues getting a struct to get serialized using Unity's JasonUtility. I read that it can serialize them, but it seems it is not doing so. Here is my structure: using System; using...

Unity tutorial- Gameobject won't destroy

I'm following a Udemy 2D tutorial in Unity to create a 2D pixel game. Language is C#. I am simply copying down the code because I am unfamiliar with coding, however I copied down the code to a T...

Mismatch between OpenCV projected points and Unity camera view

We are working on an AR application in which we need to overlay a 3D model of an object on a video stream of the object. A Unity scene contains the 3D model and a camera is filming the 3D object....

How do I make a Rigidbody 2D move in the direction the user swiped in?

Using Unity 2D and c#, I'm trying to make it so that a gameobject in a mobile game will move continuously and smoothly in the direction the user swiped in. The code below is what I've been trying...

How can I get a character to walk on a moving platform in Unity

I have a moving platform in a 2D Sidescroller built in Unity 2020.1 The Moving Platform translates between two points using the MoveTo method. It does not have a RigidBody2D component. I attach...

What is the best way to dynamically generate 3D objects on a grid in Unity?

I am an inexperienced programmer, I am looking for advice on a new unity project: I need to generate terrain for a 3d game from fairly large tiles. For now I only need one type of tile, but I was...