Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
22 views

Strange “Object Reference not set” error [duplicate]

I have been working on an RPG for quite a while and found a silly mistake: the C# script that handles defense calculation when hit, "Player_Script", doesn't get the actual defense value from the "...
1
vote
0answers
25 views

Box collider has different behavior in 2 clients

I'm new to Unity. I am making my first Game and faced with problem. I have a plane and 4 gameobject that has box collider surrounded this plane. there are a few spheres as players inside of the plane....
0
votes
1answer
24 views

Scale camera to fit screen size unity

My background and gameobjects are 2d sprites not UI images ,I want to know how to make my background scale with screen size and positions of 2d sprits on it don't change after building game (webGl) ...
6
votes
1answer
96 views

How can I make outline shader like “Life is Strange”?

I want to make sketch shader like life strange. shader has two part: 1.animated dashed line 2.noisy outline I like to know how can I make noisy outline? see outline of objects First I tried to ...
0
votes
0answers
10 views

Unity inflates poly/vertex count but I don't have any lights?

Ok I have an issue with several meshes that have a lower poly count in blender, then when I export as fbx and bring into unity, the poly/vertex count skyrockets. I read here https://forum.unity.com/...
0
votes
0answers
14 views

Set the Number of Levels at Runtime

Could anyone suggest a way that I can allow a user to set the number of levels that will be in a Unity3d game at runtime, and load them accordingly? The level design information is held in text ...
0
votes
1answer
33 views

How can I make an update patch for a Unity game on Windows?

I ran into trouble making a PC game using Unity. If I try to update my game, I can't a update the C# scripts (because AssetBundles don't include C# scripts) So I think I'll need to use a server and ...
0
votes
0answers
10 views

Inverse Kinematics with obstacle avoidance for the manipulator (arm)

I have a basic understanding of inverse kinematics, in that there's a workspace and a configuration space, and the point is to find a solution in configuration space that satisfies a workspace goal. ...
0
votes
0answers
7 views

(Unity) SetIKRotation - bone isn’t aligning with IKgoal

I'm setting the IKPosition and IKRotation of the LeftHand AvatarIKGoal to a transforms pos and rot, and the position is lining up correctly but the rotation isn't. It's strange, because in the IK goal ...
0
votes
1answer
35 views

Images disappear when camera zooms in

there is no problem when the camera is away, but as I zoom in to the game, the images disappear and I can't see the game properly. What is the reason ? enter image description here
0
votes
0answers
8 views

Unity Editor - Call a method from a ScriptableObject from its own custom Editor

I have a class like this: public class NoiseMap : ScriptableObject { public string Hello() { //... } } Now I am building its custom editor: <...
0
votes
1answer
17 views

How can the ball moving like billiard after collision with wall?

I tried ball.velocity = Vector3.forward * speed and also *=-1 when the collision is occurred(It only works for straight way. But I want the ball movement be liked in photo. How can i do it? Thank you ...
0
votes
0answers
17 views

Fail to Start android service in android studio Unity

I have written a service file in android studio like: Manifest file: ...
1
vote
0answers
15 views

Hard coded triangle in HLSL geometry shader doesn't show on screen

In Unity I'm planning on using a geometry shader for processing points into quads and can't quite figure out why I'm not getting output from my geometry shader. I've edited it down to a minimum ...
0
votes
0answers
35 views

Wrong movement with Inverse Kinematics?

I'm scripting character IK to look at object "enemy" direction. If enemy is above him, he look at enemy. The issue here is when enemy goes out of character range. Character should look forward, and he ...
1
vote
0answers
19 views

Unity Shader: Make water on terrain transparent without fading

I want to create a shader for a terrain to make the water fully transparent but not invisible or faded. In this example I would want the purple square to be seen through water but not through the ...
0
votes
1answer
28 views

A* Quad/Oc Tree path-finding vs Navigation Mesh path-finding

Main What are the differences between those path-finding algorithms. Is Navigation Mesh faster in finding the path? Is it more correct than Quad/Oc Tree? Does Navigation Mesh use Quad/Oc tree under ...
1
vote
2answers
37 views

Detect Collisions While Dragging 3D Game Object

Hello i am making a game in which i have to drag a sphere on x axis and z axis on a plane with my mouse and i have created walls from cubes so that my sphere not go anywhere else in the game but while ...
0
votes
0answers
13 views

Prefabs imported from asset bundle are not lighting properly

It only happens in my main game project. I've tested it in 2 other empty projects, both in multiple versions of unity (2018.3.0f2 and 2018.3.2f1). The strange thing is that if I look at the material, ...
0
votes
1answer
43 views

Why does the drag fail when I move too fast?

I got this code that drags a 2d sphere when i touch the screen: ...
0
votes
0answers
27 views

Unity3d getting terrain height

I am making an RTS game in unity like Total War games. As for rendering I am using Graphics draw mesh instanced method and after culling a I can easily render massive amount of soldiers on battlefield ...
2
votes
1answer
32 views

is there any method to simply ignore some files in unity build?

as im trying to build my new app on unity android specially when i want to use gradle, there is always some conflict with manifest or libraries and ..... for debug and problem exploration i need to ...
1
vote
0answers
36 views

How can I avoid jitter when working with a 2D movement system?

How can I avoid jitter in Unity? Let's suppose that I want to create a 2D movement system using a Rigidbody 2D(Dynamic), and I want make the camera follow the character (which is a pixel art sprite)....
0
votes
1answer
58 views

Loading a list of items from JSON, all entries are null

(I posted a very similar question here recently and the response I received was helpful. But I have been advised to start a new question, and here it is.) I am developing a Unity game which includes ...
0
votes
0answers
20 views

When the motion button is pressed, the shape of the character changes and always goes to the left direction

good day. When the motion button is pressed, the shape of the character changes and always goes to the left direction. Why is this happening and what is the solution? Pressing two buttons moves to ...
0
votes
0answers
33 views

Why does the right and left move button not work? [on hold]

Good Day, I have a problem right and left button did. but it does not move. not working. Details are available in photos. My Player Kontrol Script : using System.Collections; using System....
0
votes
1answer
13 views

Asset Bundle hashing technique question

The flow I see people discussing using is the following In your build asset bundles step, grab the hash of each bundle Store that on your server somewhere Fetch those hashes at runtime Use the ...
1
vote
1answer
28 views

Camera to the right from the character

I'm trying to create a camera like in Fortnite or Gears of War. It's focus must be to the right side from the character: But when I rotate the camera, the character slightly shivers. Lerping and ...
-1
votes
0answers
27 views

How to get started in real time 3D? [closed]

I'm a 2D UI designer and want to start creating real time rendered 3D user interfaces. I've downloaded Unreal and Unity but am a bit stymied with how to make the transition into the programming ...
0
votes
1answer
21 views

Unwanted left-right rotation in run animation imported from Mixamo

A humanoid run animation I downloaded from Mixamo is working fine on their site and in Blender. When I import it into Unity it shows a strange movement: the full body is rotating left & right in ...
0
votes
0answers
26 views

Unity - Bullet spawns in wrong position in client

I am making a multiplayer game with prefab shooting, but unfortunately the prefab sometimes spawns in the wrong position when I shoot from a client. The bullet ...
0
votes
1answer
49 views

Adding text to gameobject

I'm trying to create a falling word game like z-type (code here). I have created 3 game objects and I want the words to be added as text to these game objects something like a health bar is added to ...
2
votes
1answer
26 views

UI/Menu that works with and without VR (Unity, WMR)

I'm working on an app that I want to be useable without and with VR (with a Windows Mixed Reality HMD like the Samsung Odyssey). For non-VR I'm simply using a canvas in "Screen Space - Camera" and a ...
0
votes
0answers
52 views

WHY !! CountDown not Working inside the IF Condition? [duplicate]

i need a way to make the countdown decreasing inside the if statement i am stacking in this problem for more than 3 days .. Don't suggest to me Coroutine cause it will not working in my case cause i ...
1
vote
1answer
24 views

Lightweight NON-dynamic particles in Unity

I know Unity has an advanced system for managing complex dynamic particle systems with a few thousand elements (Shuriken). Does Unity have a more lightweight way to create a very, very large (several ...
0
votes
0answers
29 views

When using Prefab Mode only one game object is adjusted while the others need to be manually selected in hierarchy window for changes

I created a bezier curve prefab using the code in the post How to create an illustrator/photoshop-like pentool for creating bezier curves in Unity. I added a few copies of the prefab to my scene. When ...
-1
votes
0answers
19 views

Can you help to add unity 2d right and left buttons?

can you help me in making the right and left buttons? My Player Script : ...
0
votes
1answer
22 views

SerializedProperty to UnityEvent in a Custom Editor

I am making a Custom Editor for a type that includes a UnityEvent property. I'm currently facing an issue in converting a SerializedProperty to get that UnityEvent. Here is how I declare the event ...
0
votes
1answer
42 views

How do i properly make a skybox in Unity?

I have some trouble creating a sky box from a panoramic texture. Everything appears to be working. However there are some artifacts in one place. How do i get rid of them?
0
votes
0answers
20 views

Android studio background GPS service call and Unity

If I have a service file written like this in android studio: Manifest file: ...
0
votes
0answers
39 views

In Unity, my joystick button only works a few times, why?

My part of the input code looks like this: ...
0
votes
0answers
6 views

Unit Getcomponent error for bookmarks functionality in my game im using playerprefs

this is my bookmark functionality. ...
1
vote
1answer
67 views

How to apply outer glow to a UI game object? Shader? Particle?

What's the best or easiest approach to apply an outer glow effect to a UI game object -- let's say, a popup dialog, so it's a rectangular shape -- in Unity 2018.3? Is this something that should be ...
0
votes
0answers
9 views

Unity 2018.3.0f2 Blank Errors

I am getting these blank errors in unity for quite a while now, as soon as I create a new Project 2D or 3D I am presented with the following and can't enter in play mode. And as a workaround I have ...
0
votes
1answer
19 views

Touching screen not working for move object or print message

It's simple, i want to move an object when i touch the screen, but code's not working, i tried to just put a console printing on it, but nothing happens: ...
0
votes
0answers
32 views

Ice transition particle effect

We are small indie team developing a casual mobile game. We are trying to implement an effect like the normal-to-ice block transition in Angry Birds 2: How can we implement an effect like this in ...
0
votes
1answer
34 views

why My canvas buttons are behind the object?

I don't want this to happen. Screen space overlay no problem, but when screen space camera does this.
0
votes
0answers
23 views

Texturing edges of a procedurally generated polygon

I'm generating a polygon from code to display unit ranges in my game. Here's how it looks so far: I would love to be able to now use my texture and only apply it to the edges of this polygon (imagine ...
0
votes
1answer
94 views

Why Godot over Cryengine, UE4, Armory3d or Unity3d? [closed]

Godot have a low performance in linux systems and lack of functionalities? This appear not been in account when peoples vote for him over other engines and i wonther whi. I know it is under MIT ...
0
votes
0answers
13 views

Blinking color shader

Currently i'm using Unity3D, and i want to make one variable blink along time in a fragment shader. Now i have code like this: ...