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

Make enemy follow player intelligently

I was trying to make a script to make my enemy follow my player intelligently (but not too much) and I want to know if there was a better way to do it (of course there is but I wanted to find a way ...
0
votes
0answers
7 views

Transparent alpha mode in Shader Graph creates unwanted jagged outline

I am currently working on a transparent shader and noticed that all my works have a jagged dark outline. I guess I've used the wrong settings somewhere, but I've been fiddling around with a couple ...
0
votes
0answers
20 views

Unity's Profiler doesn't specify which of my methods take how much time?

I'm working on a map generator, which is used in Awake(), so I couldn't see it in the profiler. So I created a new scene, where right clicking generates the map. Now I can see the generation process ...
0
votes
0answers
23 views

Making an ice cream or icing effect

How can I make an effect like filling a cone with soft serve ice cream, or putting icing on a cake? (Animated example via this article)
2
votes
0answers
13 views

Reuse assets across different rendering pipelines

What is the best way to handle same project with two rendering pipelines that share 99% of the Assets? We have one really big project for which we've decided to try and use both the URP and HDRP ...
0
votes
0answers
11 views

Override assets at import time

My unity Assets folder has the following structure ...
0
votes
1answer
6 views

How to search for all uGui scripts in scene in the Unity editor?

I have many game objects whose properties I need to edit because of a bug/error. However, this is very time consuming, because I need to check each game object one by one. Is there any way to search ...
0
votes
0answers
6 views

Unity 3D: Missing “Edit Joint Angular Limits” button in character joint

So I’ve following one of Brackey’s tutorials on ragdoll physics, and part of the tutorial shows him clicking on a button at the top of the “character joint” component that is labeled “Edit Joint ...
0
votes
0answers
12 views

Unity2D: Colliding with Edges Issue

I am using Unity (in 2D). I have force being applied to the rigidbody2D when the player moves left/right. For some reason, when the player hits the edges of the tiles, it just pushes up and forward. ...
0
votes
1answer
11 views
0
votes
0answers
10 views

Filter data in scriptable objects

I have imported data from a csv file into a scriptable object. The scriptable object is made up like this. ...
0
votes
0answers
13 views

Grid base movement shader

I am currently working on a turn-based shooting game (X-Com Western Theme). I really like the shader effect used in X-com which highlights the edge of the movement zone. But I cannot think of an ...
0
votes
1answer
29 views

Changing contents of level depending on which character was selected

I'm trying to create a character selection menu in Unity, where each character has their own version of the level that follows. There are about 10 characters. Each character has a different location ...
0
votes
0answers
27 views

Help deciding data structure for spatial partitioning, using only value-types in c#

I simply want to implement some sort of grid where I can sort units in an RTS into cells, and then for each unit check to avoid other units and attack other units, in 2d. My map grid is currently 10 ...
0
votes
0answers
14 views

Unity: on iOS, materials with normal maps look totally wrong

We're building an AR-enabled app with Vuforia and Unity 2019.3, using the Universal Render Pipeline. Trouble is, on iOS our models that have normal maps in their materials look totally bad, as you ...
8
votes
2answers
2k views

Why is it that I’m still able to call a coroutine from another script, even though I marked it as private?

I have this private coroutine in my WinDialogue script: ...
0
votes
0answers
10 views

Unity Error : HMD Not Found Presence Failed 126

I make a VR game and even if I use Oculus Integration or SteamVR I get this error in Unity -> XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_HmdNotFoundPresenceFailed:...
0
votes
0answers
12 views

Auto-generate optimal direction for Unity Raycast with specifications

How can I have a Physics.Raycast auto-generate a direction for itself to try to hit a given target through a restricted window of space? This is kind of a long ...
0
votes
0answers
2 views

Unity IVRRenderModels_006 SteamVR Error

I get this Error in Unity when I imported SteamVR : "Failed to Load IVRRenderModels Interface Version IVRRenderModels_006" I looked after on it but nothing really solved the problem. Why is this ...
0
votes
0answers
11 views

Why doesn't my navmesh agent stop when they are stoppingDistance away from their target?

I am testing my mesh navigation program on Unity, but I am not sure why the instance variable stoppingDistance of NavMeshAgent ...
0
votes
0answers
9 views

Unity: How to subscribe for events for easy unit testing?

I've run into the same problem multiple times that is begging for a solution. I try to write a lot of decoupled code to make my MonoBehaviour scripts as reusable as possible. This means that I end up ...
0
votes
0answers
23 views

Banner and rewarded ads issue

I'm trying to create the admob banner and rewarded ads. However I'm unable to see those when I try on my mobile device. Once the player dies, if he clicks on the revive button, the rewarded ad should ...
0
votes
1answer
22 views

How to move player out of multiple penetrating colliders?

The player in my game can teleport like Noctis from ffxv.The player shots a weapon projectile and then teleports to the projectile. I'm using raycast to calculate the weapon position after thrown. ...
0
votes
1answer
26 views

Making sense of the positions of gameObjects

Project files: https://github.com/Sebastian-Nielsen/makingSenseOfPositions Note: There are no scripts running, all I am doing in between each picture is manually changing the x-coordinate in the ...
0
votes
2answers
14 views

How to load additive scenes to the master client, per player, in unity using photon?

I have already successfully created a multiplayer scene where multiple users can join, however there are some issues like unity not allowing multiple sound listeners per scene. In order to alleviate ...
0
votes
0answers
17 views

Shader Development and Unity [closed]

I've been introducing myself to shaders in Unity. I used LWRP and shader graphs to make some additives and such. However I also have an abundance in code-wise shader tutorials. Shader Graphs looks ...
0
votes
1answer
27 views

How to get multiple string values from override ToString()?

I want to get multiple string values(selectedNameand selectedCurrency) individually from ...
0
votes
1answer
12 views

Unity trigger method does nothing

I have the following script on my object: ...
0
votes
0answers
10 views
0
votes
0answers
17 views

How to make control smooth?

How can I make the control smooth? Changing the sensitivity and clamp fields does not help much. ...
1
vote
1answer
36 views

AI Conversation

I am trying to create a conversation system for a crowd simulation AI. The way I am currently approaching this is by doing a check if bot1 sees bot2, than I pick a point for them to meet and they meet ...
0
votes
0answers
16 views

Instantiate a new Prefab

I’m developing a little 3D game to improve my Unity C# development. However, I am faced with a recurring error that I cannot find the solution to :/ In fact, I always get the error ...
0
votes
0answers
7 views

Unity: Stop Rigidbody from moving in one direction [duplicate]

I move a rigidbody by moving the mouse. I want my rigidbody to stop moving in the x direction when it exceeds a certain range. To do that I set the x velocity to 0. If I log the velocity, the x-value ...
0
votes
1answer
10 views

Fix Unity Line Renderer for pointer drawing a jaggy line

I think I'm using the standard Oculus setup from the SDK using the OVRCameraRig. I've also got a LaserPointer. But inside VR on my Rift the line looks like this. Any idea what I'm doing wrong? It ...
1
vote
0answers
46 views

How people get their game ideas? [closed]

One thing that always stop me when I want to start making a game is having no idea what to do. How do people get ideas for their game ? I mean realistic ideas for people who are alone with the minimum ...
0
votes
0answers
14 views

InfoBox for VR in Unity

Currently, I am making a GYM in VR with Unity (2018-LTS). I made the Machines in Blender (2.8), and I put videos next to them, How to make the exercises well. I want to put an Infobox on the Wall, or ...
0
votes
0answers
19 views

Why when scaling object to one direction(forward) it's not starting smooth?

...
0
votes
0answers
18 views

How can I disable the red X button in unity?

I just want to know how to disable the red X button in the game window using unity, to prevent the player for example from closing the game. So if anyone knows how to do it, any help would be greatly ...
0
votes
0answers
13 views

What is the order of execution of OnClick and PointerUp in Unity?

I have an UI element in Unity with a Button and a Event Trigger component. The Button component calls a method when the OnClick event is triggered, and the Event Trigger component calls another method ...
0
votes
0answers
18 views

Grappling hook script sometimes causing jitter

I am trying to implement a grappling hook mechanic. My grappling script is attached to my camera that is attached to the player. Sometimes when I try to grapple onto a wall, it causes jitterting ...
-2
votes
0answers
15 views
0
votes
1answer
23 views

ArgumentOutOfRangeExeption in unity C#

I keep getting this error: ...
0
votes
1answer
23 views

convert space to button C# to jump

Hi I am trying to make my character jump when a button gets pressed... At the moment it jumps when I press space bar but how can I change the code to make him jump with a button??? (Yes I know this is ...
0
votes
0answers
22 views

Black stripes at the junctions of road segments

I made a simple runner where the road is dynamically generated, and the sphere together with the camera moves with the help of Rigidbody velocity, but the problem is that black bars appear at the ...
0
votes
0answers
14 views

Unity ScrollRect many objects perfomance issue

I have scrollrect setup and over 1000 objects to scroll through. Currently i'm Instantiating all the 1000 objects at once and notice fps drop. I'm using 2d mask and disbale pixel perfect. Both gave a ...
0
votes
0answers
5 views

Unity: How to prevent animation from twitching when combined with Navmesh Agent

I am trying to make a third person shooter in Unity and trying to implement a zombie that follows the player and when close to player, attack animation is played. I am using the NavMesh Agent for that ...
1
vote
0answers
14 views

Why would running WebGL app in Edge improve performance in Firefox?

I have a WebGL app (built using Unity 2019) which I'm testing locally in Firefox and Edge. If the app is only running in a tab in Firefox, it runs at 25 - 50 fps and has noticeable stutter. If I run ...
1
vote
1answer
26 views

How to add ingame tutorial for first time?

I want to know how to show tutorial when player playing for First time. Only once
0
votes
0answers
12 views

How to always draw a child mesh in front of its parent mesh

I need to display a gizmo-like mesh at runtime, and it must be always in front of its target mesh. How can I achieve that?
0
votes
0answers
14 views

How do I calculate sprites/frame usage on my platform's ram?

I plan on building a 2d game for mobile and possibly pc. I also plan on using sprites/frames for the animation of my 2d game. What's stopping me from doing so is because I can't figure out if the ...

1
2 3 4 5
240