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

Art reference resolution year 2020 [closed]

I am making a 2D sidescroller type of a game with Unity with reference resolution of 1920x1080. I started to think is it good enough resolution for nowadays computers or should i start from the ...
0
votes
0answers
10 views

Why can I only pick up some of my blocks from the sides instead of from anywhere on the block?

In my game I wanted to drag and drop blocks. For a while, I had another issue where my blocks wouldn't connect to their holders when dropped on them. On further play testing however, I noticed that ...
0
votes
0answers
11 views

ArgumentException: Index out of bounds error in Unity [closed]

I have this to detect touch input: if (Input.GetTouch(0).phase == TouchPhase.Began && !dead) And I'm getting the "ArgumentException: Index out of ...
0
votes
0answers
16 views

(Unity) how to write my own raycasting functions

I am making a game in curved space in Unity and I am trying to figure out the best way to handle raycasting. For my purposes the Ray struct doesn't carry enough ...
0
votes
1answer
20 views

Mesh shaded as single pixel

I am trying to procedurally generate planets in Unity. The actual planet is already done, but now I am trying to add clouds. For this I created a PBR-Graph shader that draws the clouds based on some ...
0
votes
0answers
17 views

Offset Animated character after applying animation

I have 2 FBXs in my project. They are identically named - top to bottom - in their respective FBX hierarchies. When I bring them both into unity, FBX A is T-Posed & FBX B has an Animation within ...
2
votes
2answers
26 views

Using Async Await in Unity

I am trying to make a reload mechanism in Unity, but the function is in a scriptable object. This means I cannot use Coroutine as it is in MonoBehaviour. I could think of solving with a simple timer ...
0
votes
0answers
18 views

Passing touch position to compute shader

I am working on a game where I have to mix colored liquids as shown here. I am working with a plugin (StableFluids) to get this effect: Effect Problem: The shaders used in the plugin are able to ...
0
votes
0answers
10 views

How to set a directory to download assetbundles from?

Hi I'm using unity and I've created an AssetBundle file containing two different sprites. I set it's path to my desktop and I can load my assets. But how to download the AssetBundle from a directory ...
0
votes
0answers
19 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
1answer
10 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
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
3answers
51 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
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
0answers
17 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
19 views

How to handle Animal AI biting and holding onto the character

Example state of decay, zombie biting the player
0
votes
0answers
36 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
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 ...
0
votes
0answers
19 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 ...
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
0answers
14 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
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 ...
0
votes
0answers
20 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
29 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 ...
1
vote
1answer
19 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
0answers
5 views

change the pivot point of an empty object

I have couple of objects and put them inside the empty object (to act as custom pivot point) . Now, i want to change the pivot of the empty. Normally i will unlink the objects first, move the empty to ...
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 ...
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 ...
1
vote
0answers
20 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 ...
1
vote
2answers
70 views

How do you make small icons look good?

I am running into an issue with my UI. Basically I need to have a lot of small icons, similar to many other games, here is an example: With Mip maps: As you can see, these look awful. This is simply ...
0
votes
0answers
13 views

Force change prefab source

I have a prefab A and i use it in scene A (as gameobject A). Then i to save that scene A as scene B and also renamed the gameobject A to gameobject B. Then inside unity (in project window ) , i ...
-2
votes
0answers
31 views

How do i make a reference to another game manager? Not GameObject

I made a reference here but the drop down list in script seems to not contain the variables from another script ...
-1
votes
1answer
21 views

How can I get the name of a scriptable object via code

How can I get the name of a scriptable object, same way I would a game object gameObject.name? I've tried: ...
0
votes
1answer
13 views

How to set off Cinemachine camera shake during an explosion

How do I set up camera shake during an explosion with Cinemachine? This is the first time that I've messed with the impulse listener on cinemachine and so far, I can only get the camera to shake when ...
0
votes
0answers
45 views

I want to create a 3D game in unity for wolf and sheep game. So, how can I set up pieces and move them using C# code?

This is the approach that I have made so far in the code that I have written. Based on the output in unity received from the code, I can see 4 white pieces on one end and 4 black pieces on the ...
0
votes
1answer
15 views

Not able to find the constraints option in the Rigidbody component

I am working on a game tutorial right now and I need to freeze constraints for a model prefab. I add a Rigidbody component and I want to freeze rotations on the x ...
0
votes
1answer
34 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
vote
1answer
33 views

When the scene is loaded again start function is not getting called from the script in which I have applied singleton pattern

In Game scene I have an empty GameObject Circles to which a script named Circles is attached. The script is: ...
0
votes
0answers
23 views

Unity higher Z position tiles rendered underneath

When placing tiles in an isometric tile-map in Unity, I try to place blocks on top using the "Z Position Value" However it looks like higher Z position values get rendered underneath. In ...
0
votes
0answers
15 views

Improve appearance of neon LineRenderer at sharp corners

I followed the answer given in how to make 2d neon using linerender and get neon effect nicely, but when I draw a line with a tight circle or overlap nearby lines, I get unsightly triangle artifacts ...
0
votes
0answers
5 views

Unity Applying Global Light Settings fog to a non-main camera

Is it possible to apply fog to a non-main camera?
1
vote
0answers
13 views

How to prevent Dynamic Rigidbody2d with large mass pushing another Rigidbody2d into BoxCollider2D

I'm making a prototype for a game idea but hitting a problem :( Quite new to Unity and feel like this should be relatively easy to solve, but keep going around in circles, and hoping to get some help :...
-2
votes
0answers
17 views

Facebook Friends Profile Picture and Leaderboard in unity

I am creating a leaderboard of player and his friend. So far I am downloading the pictures each time the user goes to the leaderboard scene. How to check how much mobile data is being consumed each ...
0
votes
1answer
23 views

Move Object θ Degrees Over T Time

Note, this happens on click and not in the update cycle I have a game object that i rotate at a given angle, around a point without a time component like this(works as intended): ...
0
votes
1answer
20 views

RigidBody or Character Controller for Zero Gravity first person shooter

I am developing a single person, first-person shooter that takes place in space. I want to be able to simulate zero gravity. Should I use a Rigid-Body or a Character Controller?
-1
votes
0answers
26 views

How do you continuously spawn an object after it hits a certain mark?

After my tile platform reaches 70 in vector, I want my object to spawn throughout the vector but it just stops after it reaches the 70 distance ...
0
votes
0answers
28 views

Let player paint in constrainted hexagon grid

I am creating the hexagon grid, in which I would like let the player to paint map, I have come this far by now: I have found how to get position of cell in grid. I have found there is ...

1
2 3 4 5
255