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
1answer
6 views

Only 1 TextMeshProUGUI being affected by coroutine

I have a prefab m_wordContainer which is empty other than having a TextMeshProUGUI as a child (I did this so that I could position this container freely not being bugged by an animation played by the ...
0
votes
0answers
10 views

Implement navmesh for climbing cliffs and walls

I am trying to implement dynamic wall climbing similar to Conan exiles and Legend of Zelda: Breath of the Wild. My system as of now uses a raycast to get the direction of a geometry's normal, and I ...
0
votes
2answers
107 views

2D Camera Movement Temporal Reprojection

Having an Orthographic Camera with its View Projection Matrix given from the current and last frame, how to reproject the previous frame to the new one?
2
votes
1answer
25 views

Reducing disk space needed to use TextMeshPro in AssetBundles

My game uses AssetBundles, and quite often each of those bundles use TextMeshPro. The project is at a stage where it would be ...
0
votes
1answer
112 views

My character jumps, stops and if I try to jump it jumps!

There is this thing. I have Coded to check if my character is grounded. And it works fine. But problem is that I have added a code to jump. When my character jumps while checking my character is ...
0
votes
1answer
133 views

Preventing overlap in OnCollisionEnter2D

So I have successfully built a script that can determine the physics for a ball reflecting linearly off of walls, similar to pong, while the ball is using a kinematic rigidbody. The issue is when the ...
4
votes
1answer
942 views

How to correct this issue with a top-down aiming angle in Unity - 2D?

I'm trying to build my first project and I'd like some input for a math correction. The game is a top down 2D shooter, a bit like the iconic "chaos engine" from SNES. The issue is that either the ...
0
votes
2answers
95 views

How to return the scene view camera to the default view

By the "scene view camera" I don't mean a GameObject with a Camera component, I mean the camera used to draw the Scene ...
4
votes
1answer
1k views

Changing scene while joining room and RPC buffer problem

I have a button on my main menu that creates and has the player join a random room. After the client joins this room, I change the scene to the game (main) scene in the ...
2
votes
2answers
5k views

How to get “this” object collider name when OnTriggerEnter is fired?

I have a "car" object with 2 colliders attached, a base and a top collider. Then I have a script attached to my car. I'm using OnTriggerEnter event to detect collisions with an invisible "Checkpoint"....
0
votes
0answers
7 views

Panning value of 2nd GameObject's AudioSource is not initializing

I m making a prototype and stuck in a problem where 2 gameobjects swap but there values of panStereo of AudioSource is not initializing from a float array which contains all the Default Value of ...
1
vote
2answers
2k views

How to move a player along Waypoints with Rigidbody.MovePosition in Unity?

I have a player with a Rigidbody, I want it to follow along the Waypoints. I have used MoveTowards but it seems also not to work however. I want to use MovePosition to add force while grinding. I ...
1
vote
3answers
49 views

2D Finding an algorithm to check pizza toppings positions

Using unity 3D I am creating a 2D pizza game and I am stuck at finding an algorithm to solve this problem which is Detecting if the pizza is half and half taking into consideration that the user can ...
0
votes
1answer
145 views

Baking lights causes weird seams on meshes. How to avoid it?

I'm trying to bake lightning in the simple scene with some imported geometry. The result is weird seams near the edges of the meshes even there is no free space between them. How to avoid it and just ...
0
votes
0answers
11 views

Shader Tiling Texture Overlapping between X and Z Axes

I have a shader (code at the bottom of this) that I'm using for a terrain. It renders a texture on the sides of the terrain (the x and z axes) and between those axes the texture tends to overlap. I ...
0
votes
1answer
311 views

Unity AudioSource.PlayClipAtPoint - controlling attenuation

New developer here, looking to do some raycasting and controlling audio positioning in 3D space based on the raycasts interactions with other objects. I've got the raycast 'casting' and able to report ...
0
votes
1answer
41 views

Centring content within a scroll area

I've got a Scrollbar with a dynamically generated number of entries, and I'm trying to figure out how to get it to act so that there's a lead-in of the first 3 items (example number based on the size ...
0
votes
1answer
18 views

Detect a collision between a CharacterController and a 3D Object?

I am making an XR game, and I am stuck with a part. Does anyone know a function that would detect this? OnCollisionEnter and ...
1
vote
1answer
139 views

Dynamic rigidbody and kinetic with simplectic integration for trajectories [2d]

Okay, I have the following situation: I want to launch a GameObject into orbit of a planet and using the dynamic rigidbody everything is working as I want. I simulate gravity and as it hits the ...
0
votes
3answers
461 views

Unity FPS Offline Multiplayer (MultiLan) Player Animation

I am creating an FPS game in local multiplayer. One player creates the hot-spot game, and the other one connects through WiFi network and plays the game. And i am doing this using unity MultiLan ...
0
votes
0answers
17 views

Apparently, Unity decided to import a bunch of things I already had

I am getting lots of errors ever since Unity decided to reimport plugins and Unity assemblies that were already present in my project. I am not sure what I can now do, what folders to delete to fix ...
0
votes
1answer
23 views

How to rotate and move an object in precise time frame

My task is to rotate and move an object into a new position and rotation in a given time. Say I have to move a cube from (0,0,0)|(0,0,0) to ...
0
votes
1answer
242 views

Smoothen line on linerender

I've created a square using linerenderer but my problem now is that the line is not smooth. see below picture. I've tried enabling anti-aliasing and setting lr.numCapVertices to no avail. ...
0
votes
0answers
15 views

Chibi 3D high to low-poly 3D model to Unity, how it be more optimize in Unity? [closed]

Greeting to all, I'm sculpted a high-poly zBrush model into prepared 2 kinds of low poly models: (auto-topo low poly model:824polys, 53.3KB excluded maps) (manual topo low poly Model: 720polys, 47....
0
votes
0answers
18 views

How to handle Animal AI biting and holding onto the character

Example state of decay, zombie biting the player
0
votes
1answer
61 views

Blender / Unity - Which one do I paint on? low poly or high poly

I created two versions of my object. One high poly and one low poly. I sculpted the high poly one and plan on baking a normal map so that my low poly one can have more detail. My question is, once ...
0
votes
1answer
25 views

Interactive texture modification (such as swirling) in Unity

I am working on a game where I want to allow users to mix multiple colors (similar to shown in this video): https://youtu.be/11UFYyv8hjs?t=316. I have the following questions: I am expecting that ...
0
votes
1answer
201 views

Unity3D: Modifying Animator Controller parameters

I have this GameObject with an AnimatorController. The AnimatorController has several states in which I want to parametrize the animation's speed because configuration. For this, I've created an ...
0
votes
1answer
15 views

How to calculate a child UI image's anchoredPosition(?) based on screen position input?

How to calculate a child UI image's anchoredPosition(?) based on screen position input? I'm trying to have the child UI image (Spotlight) show up where the eyeball UI is, but it seems to always be ...
0
votes
0answers
24 views

Unity, Pixel Perfect and Scaling

I am totally stuck on with pixel perfectness of the game. I have tried a few pixel perfect camera -assets, but they have lots of issues considering scalability. is it normal that these cameras zoom in ...
0
votes
1answer
727 views

Unity 2D Input.gyro eulerAngles X value strange behaviour

I am working on a project where I want to create an 'scrolling' effect using gyroscope on mobile devices. The basic idea is that I have an Image object in my ...
0
votes
1answer
22 views

How to select parent of currently selected object?

When i select an object, i can't find a function to select its parent. Does this basic feature exist ? I want to select the parent of selected object and then step up to find parent of parent so on ...
6
votes
1answer
539 views

How to rotate a parent object while rotating a child object to a certain angle using coroutines

I have a semicircle like game object which I made by putting two arcs in an empty game object (SCircle) and rotating the 15° (for left arc) and -15° (for right arc) as seen below. ...
0
votes
0answers
16 views

(Unity) Why is my object only rendering in scene mode and not game mode? [closed]

In my scene I have two objects. Both have different scripts that generate a mesh through code when Start() is called. Both scripts have different custom shaders I ...
1
vote
1answer
18 views

Blendshapes in Unity vs Blender

I have a model from a package that has existing Blendshapes that work fine. I'm a bit of a Blender newb, though. I'm trying to add a Blendshape for spikiness to a cube model. It's early WIP, but it ...
0
votes
2answers
44 views

Unity open UI from ScriptableObject

I have a Canvas that has multiple UI Panels in it for an inventory, crafting, etc. To open these panels I currently have a ...
0
votes
0answers
10 views

Get MouseUp event outside of Sceneview scene window?

So I have an editor script that uses a dragging operation which works quite nicely. Except, if you release the button while OUTSIDE the Scene Window, the event doesn't register. How do I detect ...
1
vote
0answers
6 views

Getting “continuous collision detection”-like behaviour out of triggers

I have a particular scenario where I want to use a trigger to adjust the course of a fast-moving projectile, but am running into issues because Unity does not support continuous collision detection ...
0
votes
1answer
17 views

How to create a projectile path in unity using physics

I want to create a jump function that launches a RigidBody2D along a low, long, trajectory. In the following examples, I have set the linear and angular drag to 0, to eliminate any possibility of ...
-1
votes
0answers
23 views

Gravity working in reverse [duplicate]

I am new to Game Development. In fact, this is my first project. I am trying to make a speed run/parkour game. I decided to start with movement and physics, and make the course later. Movement works ...
1
vote
0answers
18 views

How do I call out an IEnumerator from another script to a script which also contains IEnumerator? [duplicate]

It is a Game Manager: public class gm : MonoBehaviour public IEnumerator spawnTile() ..... I want this IEnumerator spawnTile to ...
0
votes
1answer
80 views

Advertisement showing red [closed]

I am trying to monetise my game and I am testing out how to apply ads. But when I code in a simple ads code just to test it out, a red error comes under: ...
2
votes
2answers
1k views

Texturing different block types on an optimized voxel mesh

I have a cubic world (like Minecraft) where I'm generating chunks. In those chunks, only visible vertices and faces are generated. Currently, it means that if I have a 2x2x1 chunk, it will generate 8 ...
0
votes
0answers
16 views

Build pipleine between 2 points take rotation into account

Given a start point and start rotation and end point and end rotation, how can i find a path from start to end, that takes rotation into account and moves only on the axis. I currently have a code ...
0
votes
1answer
24 views

Unable to add AR session

I am new to unity and i am trying to make a AR app. I have installed AR foundation, Arcore Xr plugin, Arkit XR plugin via package manager. Then if i go to the Hierarchy panel to add a AR session and ...
1
vote
1answer
307 views

Unity baked lighting - blotchy shadows, bleeding and/or stiching

I have spent days trying to get baked lighting to look good. I use a simple low-poly style. No matter what I do, I get this type of effect (blotchy shadows and odd dark lines): Here are my settings: ...
0
votes
1answer
627 views

Unity3d turn based navmesh algorithm

I am developing a game in Unity3d. In this game, 2 teams will fight without any human interaction. The fight results must be always the same, if the same teams are the same. This way, I must ...
2
votes
0answers
36 views

Mesh distorted during animations exporting from Blender + Rigify to Unity 2020

I finished my first 3D Character with a couple of animations using Blender 2.8 and Rigify. I'm exporting it to Blender as FBX file and everything seems to work. The only problem I have is with the ...
0
votes
1answer
32 views

Why won't my block Spaces/Holders hold my blocks when I drag onto them in Unity?

In my game I am trying to have numbered blocks and math operators be able to be dragged down into their respectively color coded holders (white holders = Numbers, black holders = operations). The ...

1
2 3 4 5
255