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
4
votes
2answers
1k views

My trigger does not detect my player

My trigger does not detect my player. My Trigger.cs file: ...
0
votes
0answers
7 views

I need this turd to blink?

I need this turd to blink: ...but not literally. This is a 3d gameObject oriented to face the camera, shaded with an unlit texture. I need the object to "blink/flash" to indicate that the item has ...
0
votes
1answer
76 views

Google play services not working in unity

I've done everything as specified- Linked my app to play services in the developer console. Added the SHA1 from Applications -> Release Management -> App signing -> Upload certificate. Downloaded the ...
0
votes
1answer
14 views

Unity Mouse position for weapon wheel

Say i have the following wheel: Now i wish to use the mouse to select weapon by movement: So If mouse is to the left it picks the Sword if mouse is at the top it selects the bow and arrow if the ...
0
votes
1answer
24 views

How do I draw a context menu next to my object?

I want to show a menu next to an item in an inventory. This is what I try to rebuild: I do this by placing a canvas in 3D world space next to the inventory: As I don't want the menu to be rotated, I ...
0
votes
1answer
8 views

Why does WorldToScreenPoint return “strange” results?

I would like to show a menu to the right side and at the same y coordinate as a certain gameobject (shown as a green cube in the screenshot). Therefore I'm trying to get the screen coordinates of the ...
0
votes
0answers
29 views

What is the difference between HDRP materials and normal materials [duplicate]

I want to understand these materials I am always confused of using HDRP materials that which one is used for low texture which one is for high texture, for glass, for particles and many other.
1
vote
1answer
34 views

How can I make alternate fragments drop (or make them black) based on a checkerboard texture?

How can I make alternate fragments drop(or make them black) based on a checkerboard texture in a Unity fragment shader? I am using forward path rendering in my shader passes for lighting and shadows ...
-1
votes
0answers
56 views

How can I apply a Animation effect(ScaleIn/ScaleOut) On obstacle using DoTween PlugIn?

I'm working on a 2D game. How can I apply a Animation effect(ScaleIn/ScaleOut) effect on an obstacle using DoTween PlugIn? What I m Trying To Implement this link: https://www.youtube.com/watch?v=...
2
votes
2answers
2k views

Why does Unity launch Visual Studio but opens files in Notepad?

In Unity 5.2.0f3, when I double-click a C# script, it effectively launches Visual Studio Community 2015 but then opens the source code file in Notepad instead of inside the Visual Studio IDE. How can ...
0
votes
0answers
9 views

Problem in Button click in Android Mobile [on hold]

I am working on a game with 100 different levels. All the levels are in different scenes. In my game, the menu buttons are working in perticular scene and not working in a particular scene on Android ...
0
votes
1answer
28 views

how to make UI material ignore scene lighting, have same brightness as albedo?

I have a material on a quad surface object that is parented to a canvas for a pause menu. The material is animated (materials on UI elements such as canvases cannot be animated because of [reasons], ...
0
votes
2answers
1k views

How to make the wheels rotate depending on the speed of the vehicle

I want to know what the right formula is, or a way to make the wheels rotate with the speed of the vehicle? What is the standard way to make wheels look realistic and natural? Do developers use other ...
0
votes
0answers
12 views

Play services error on android with unity [duplicate]

I'm trying to add google play services to my android game. I've done everything mentioned in the play-services github page, but the sign-in doesn't show up when i start my game on an android device. ...
1
vote
1answer
82 views

Get a point inside an ellipse

So I have a sprite of an ellipse ( it is a 2D game). I would like to get a point inside this ellipse so I can instantiate something. How would I do that? Sprite won’t be changing the scale, so uniform ...
0
votes
1answer
57 views

Why does my game crash on startup?

I'm very new to Networking, so I've been trying to develop my own Server and Client to use with Unity. I of course did some copy and pasting to learn the basics, but now I'm trying to get a real grasp ...
0
votes
0answers
30 views

Reusing tilemap segments

I'm wondering how I can incorporate reusable tilemap segments in my workflow. For example: I construct a room out of my tile palette, and I want to reuse this room in multiple places. Is there some ...
0
votes
1answer
34 views

Unity3d: Position a gameobject such that its forms a right angled triangle with other two gameobjects

How do I position C gameObject such that it forms a right angled triangle with A and B. I tried to use ...
1
vote
1answer
77 views

Loading a web page in unity

Hello I need to open a page in unity and save some of it's contents but I have absolutely no idea how I should do it. Thanks for help.
-2
votes
1answer
26 views

How do I properly scale a Screen Space Overlay with its children?

I have a Canvas on which 3 Text objects are hosted. These text objects are anchored so that they move and scale with the canvas if the canvas has "World Space" render mode. Now I need to set the ...
0
votes
0answers
16 views

Can I select the target as 13+ in google play console and also monetize my game with FAN?

I have monetized my Unity game with Facebook Audience Network (FAN). Now while selecting the target age in Google Play console, it says, main target is children and I have to stick to Google certified ...
2
votes
2answers
38 views

Why is the Enemy not changing direction when entering the collider?

I'm really new to Unity, and I'm trying to make a 2.5D platform game. I want to make my enemies walk on a platform and turn when they reach the end of the platform so I placed two triggers at the ...
0
votes
1answer
25 views

Unity: 'Quaternion.RotateTowards' animation is too fast (instantaneous)

I have a 'block-on-a-hinge' scenario where I just want it to smoothly rotate into the position of a stair step. I messed with this for a day and finally verified that my start and end angles are ...
0
votes
0answers
18 views

I tried to create Spawner using GameObject / Prefab, and it was cloned, but can not show on the game screen?

Unity Game I tried to create Spawner using GameObject, and it was cloned, but can not show those clone on the game screen? ...
0
votes
0answers
4 views

Unity - Black lightprobe after bake

What does it mean when a light probe looks like this after a bake? And why does it happen? It not touching anything, and all the others are fine.
0
votes
1answer
38 views

Unity3d: Find which gameObject is in front

I have two gameObjects A and B. They are rotated at <...
0
votes
1answer
26 views

How to assign separate controller axes to Player1, Player2?

I need to have two players moving in a level for a school project and my player controller is already set up for using axis inputs (as opposed to discreet buttons) for directional input. I already ...
0
votes
0answers
16 views

How can I place a context menu in my scene?

I want show a menu like for an inventory item like this: At first I thought that this is a normal object in WorldSpace. I made the canvas appear like this: Unfortunately that didn't work: If the ...
0
votes
0answers
13 views

Swift or Unity to code multiplayer iOS game [on hold]

I have an idea for a multiplayer app/game but don't know what programming language to use. I was hoping to use Swift in Xcode but I am wondering if Unity is the only option. The multiplayer aspect ...
0
votes
1answer
47 views

TextMesh Pro conflict in Unity2019.1.5f1

I'm having an issue with Textmesh Pro in my project. I originally got it from the Asset store a few months ago. More recently, I deleted it and downloaded it from the Package Manager. However, now in ...
0
votes
0answers
6 views

unity2d Run animation doesn't work it just snaps to the position when i press leftarrowkey [on hold]

I am trying to make a run animation for my character but it doesn't work when I go from my idle animation to run animation it repositions to the place I made the animation. The rigid body gravity does ...
1
vote
1answer
88 views

How do I cover a plane in a bumpy foam material effect?

I need to fill a weapon bag with foam material. This is what it should look lik: The material in the upper part of the bag looks like this: I'm using HDRP. How could I do this? Thank you! Edit: ...
1
vote
1answer
71 views

Repeating a mesh instead of stretching it

I would like to put acoustic foam into a case object: To do that, I have created a foam object: Now I'm having a really hard time to cover the case in Unity with this object: I have to adjust ...
0
votes
2answers
59 views

Is it possible to add a sprite to a joint?

I want to have a joint between two objects, but I also want to highlight to the user that these two objects are connected together. I am assuming this isn't the correct method, as a joint is just a ...
0
votes
0answers
36 views

Multiplying speed by a random movement integer results in no translation [on hold]

So I am using transform.Translate(Vector3.right * movement * speed); straight in FixedUpdate to try to move my enemy the script ...
0
votes
0answers
21 views

Issue with multi monitors (portrait and landscape) in Unity

I have an issue with multi monitor support in Unity 2019.1.0f2. I have an application that will be deployed to a Windows 10 rig that has a portrait 4k screen (2160x3840) and a landscape HD screen (...
1
vote
0answers
1k views

How can I shoot an arrow if I know the shot power and target? [duplicate]

I am trying to shoot an arrow at a target with a 100% success rate. Given the initial force applied to the arrow, the gravity, the location of the archer, and the location of the target, how can I do ...
0
votes
1answer
1k views

How to get image/icon/texture of asset from project window

I want to get image of any asset from code. Unity can display assets as with images of those assets. Is there a way to get that image from code? I need it to be able to display it in the inspector. <...
0
votes
2answers
84 views

Character teleports instead of jumping normally [on hold]

I don't know what might be wrong with my code, I added a force to the rigid body when the player presses the spacebar, but instead it teleports up and glides down… ...
1
vote
2answers
177 views

How long does one have to pay the $125 per month subscription fee for Unity pro?

I'm a bit confused by how the subscription for Unity Pro works. If I were to get Unity Pro, do I have to keep paying $125 per month for as long as I'm using Unity pro? Or do I have to keep paying $125 ...
-1
votes
0answers
30 views

My gameobjects in Unity are behaving sometimes as per the behaviour defined for them and sometimes random? [on hold]

I believe that it might due to executing many functions in parallel. Is there a way to optimise the execution of functions so that the gameobjects behave correctly?
1
vote
1answer
233 views

How to write a PBR Unlit Shader in Unity?

I have a REALLY specific case here: I have an Texture (a webcam), that is used by a shader to pickup a few x,y colors at the cordinates, and renders to a ...
1
vote
2answers
72 views

how to change value of variable only once?

I am building simple platformer game in which the player hops on to platforms and the speed of platforms increase per time. This is an endless game and depends on the high score system. But, the ...
0
votes
0answers
20 views

Need help with procedural dungeon generation [on hold]

I am currently making a dungeon generator for my game. She system is based on rooms that have doors and volume nodes. Room sizes are not fixed, however they all fit on a grid(ex. 1x1x1, 2x1x2, etc.) ...
0
votes
2answers
158 views

Mesh made in Blender is correct in Unity3D as a rendered mesh, but “empty” as a collider?

I created a simple stair "block" in Blender, and it's rendered correctly, but when I tick "Generate Colliders" and try to use it in a Mesh Collider, there is nothing. (Ps.: I need the real mesh as a ...
0
votes
1answer
34 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 ...
-1
votes
0answers
16 views

Character teleports instead of jumping 2# [duplicate]

Since I got no solutions in this question that I did 10 days ago I decided to make other thread. Basically my character instead of jumping normally, he teleports and then glides down, tried many many ...
0
votes
0answers
22 views

Unable to move UI object form script - Unity [on hold]

Hi I have a an an empty UI object which that I want to move on run time. I tried simply changing the value of x but it gives error that value can not be changed so I tried this: ...
1
vote
1answer
24 views

Rigidbody script throwing error CS0246: The type or namespace name `MouseLook' could not be found. Are you missing an assembly reference?

I've been stuck on this for the last 3 days and I really need some help. Now, I have 2 scripts that are giving me some grief, the RigidbodyFirstPersonController.cs and the MouseLook.cs scripts. On my ...
0
votes
1answer
34 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: ...