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.

7
votes
0answers
105 views

Why Can't I duck reverb on the mix bus in Unity?

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
6
votes
0answers
112 views

How to create an illustrator/photoshop-like pentool for creating bezier curves in Unity

I found a very useful bezier curve creation code here, which I am using. I need to create complex segmented bezier curves so I want update the code to create illustrator/photoshop-like pen tool bezier ...
5
votes
0answers
210 views

System.Net.Http.dll and Unity 2018.2.1, 2.2, 2.3 are conflicting, assembly reference keeps being deleted in VS 2017, any suggestions?

I'm looking for some suggestions on how to fix a strange bug i've been getting with System.net.http.dll. For the record, builds work fine as i have the mcs.rsp file in the /Assets/ folder with "-r:...
5
votes
0answers
203 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. ...
5
votes
0answers
248 views

How to force play area corners to Lighthouses in Unity

I'm working for a guy that wants to recreate real environments in VR and superpose them for business demos. Think of one of those mall kiosks where you "enter virtual reality" and at first it looks ...
4
votes
0answers
246 views

Instantiating prefabs by dragging in scene not working

So I have this problem where I try to instantiate prefabs as in this video for example. I can take instantiate one prefab to the scene, but if I try to instantiate a second one to the scene (whether ...
4
votes
0answers
146 views

Debug Unity DLLs in Windows standalone build

I'm trying to publish a game on the Windows Store using a standalone Windows build in Unity 5.6.2 and Desktop Bridge. Despite unchecking "development build", three Unity DLLs remain in debug mode, ...
4
votes
0answers
2k views

(Unity) Proper way to save ScriptableObjects changed during play mode?

I was wondering what the "correct" way to save scriptable objects in Unity that are changed during Play mode. So far I have something that works: ...
4
votes
0answers
319 views

Render live MJPEG stream on a plane in Unity

I'm trying to display a live video stream as a texture in Unity. It comes from a Raspberry Pi using motion and encoded as MJPEG. Is there an easy way to implement ...
4
votes
0answers
2k views

Unity3D LLAPI and Pyhton UDP communication

I need a Unity3D game on Android to receive UDP packages from a Python script running on a different device. Using System.Net is not (yet) an option, as it is only supported on Android with a valid ...
3
votes
0answers
161 views

Moving directional light cause huge fps drop: why?

I've implemented a simple script to simulate Sun Rotation (day/night cycle). In my "Update" i Rotate main Directional Light (the sun). What i've noticed is that my FPS dropped from 60 to 20-25 fps. ...
3
votes
0answers
104 views

Networking and physics

Context I have been implementing my own networking for a third person multiplayer game, but controls and physics will be ala old school FPSs. I'm using Unity's transport layer, which allows me to ...
3
votes
0answers
117 views

How to animate an arc from the middle in both directions

I have been able to make an arc that animates from one end to another using the following coroutine: ...
3
votes
0answers
59 views

Is it possible to have a point light cast shadows but no reflection?

I'm working in Unity 5.3.6. I have a point light that is simulating sunlight from a window. It looks great, except the floor reflects a bright white circle. I want the floor to reflect other lights ...
3
votes
0answers
42 views

Send mesh to a video card with the help of ngui instead of DragonBones in Unity

I am working at the project. It is pretty huge. And there is ngui at its core, so I can not go away from it (from ngui). Now I am assigned to incorporate the DragonBones into the project. There are ...
3
votes
0answers
74 views

Complex layout in Unity

I need ScrollRect, but at startup I don't know how many elements it should keep. Moreover this elements should be kept in categories that can fold/unfold. The problem is that height of ...
3
votes
0answers
103 views

Critical input from server arrives late… it must not!

To preface, my understanding of networking is mostly from Source Multiplayer Networking and 1000 Archers on a 28.8. For various reasons I have decided to go with a client-server model instead of peer-...
3
votes
0answers
109 views

Unity3d Sprite Mask Nonexistent in Build

I am developing a 2D game which uses sprite masks to limit the player's information to a circle around them. The feature works perfectly in the Unity Editor. It can be disabled and reenabled, have the ...
3
votes
0answers
81 views

Implementing a game in Unity without Unity Networking

I have been programming in Unity for a while, and ever since I started I could not wrap my head around the Unity Networking system. I understand on a whole how it works, I even made a small project ...
3
votes
0answers
80 views

android unity game optimisation

I'm finishing my game, i'm in the stage of optimisation, i tried multithreaded rendering and dynamic batching, with OpenGLES3.. i get a little bit increase , but now i'm getting function Clear take ...
3
votes
0answers
30 views

Upon import, isosphere is missing

To build my tank for a Unity game, I am using Blender. Currently, I am making a turret consisting of an isosphere with half of the faces removed (I needed the bottom to be "flat") with some minor ...
3
votes
0answers
66 views

How to run a timer parallel to a series of coroutines and WaitForSeconds

In the code below, I have a cycle for enemies appearing and disappearing. ...
3
votes
0answers
126 views

Android game crashes when attempting to start wifi hotspots

I have two methods that will try to start the WiFi hotspot on the android device so that others can connect and play the game.the problem is both method have problems and don't work. the first method: ...
3
votes
0answers
475 views

Run Unity standalone in Headless Mode whilst capturing screenshots

I need to create a unity project which runs in Headless mode (using the -batchmode command), but it must capture screenshots e.g. every one second and write them out to a file. I understand that in ...
3
votes
0answers
64 views

Automated performance testing

I'm wondering if there's anyway of automatically testing the performance of my game on multiple configurations because I know a game runs well on my computer but how do I know how well my game ...
3
votes
0answers
180 views

Blend Tree animation problems at rotation

I have a Blend tree animation with two floats ( VelocityX, VelocityZ) that have idle, run , run right, run left , I use a pad to move it at world space When VelocityX is -1 it run left, +1 it run ...
3
votes
0answers
1k views

How to override the NetworkManager in Unet properly?

I need some customization on the NetworkManager Class for my game I'm working on. I've read, that it's pretty common to override stuff from the NetworkManager. So I've implemented the NetworkManager ...
3
votes
0answers
228 views

Error: Cannot create FMOD::Sound instance for resource sharedassets0.resource when splitting application binary in Unity

I'm trying to publish an Unity app to the PlayStore. Since the size of the app is over the limit of 100MB, I need to split the binary. So I selected the option Split Application Binary in Unity. ...
3
votes
0answers
2k views

How do I make the PS4 controller vibrate in Unity3D on mac?

I am currently working on a 2D game in Unity3D with an option to play with a gamepad/controller. I would like the PS4/dualshock 4 controller to vibrate. I am on mac. I have looked into Xinput but I ...
3
votes
0answers
64 views

Stop Mesh render on intersect

I am generating camera frustum mesh through code, it is working fine. Now I am searching a solution (shader based or else) to restrict the camera frustum mesh if it intersect with any object. Like you ...
3
votes
0answers
366 views

Build includes sprite packer atlas and its original textures

I use Unity's Sprite Packer, it's working great. However, when I looked at the build report (in the Editor.log) it turns out that the build often includes the generated atlas texture and its original ...
3
votes
0answers
498 views

Unity & Alternatives to non-convex collider + non-kinematic rigidbody

I am working on a voxel game, where everything is one or more chunks of voxels (16x16x16). As voxels can be destroyed the chunk and collision area changes and can of course become non convex. So to ...
3
votes
0answers
715 views

Unity 2D: How to make player grab a ledge, swing and jump to another

Since I'm not a native speaker, it's hard to explain in english what I want to achieve, so I'm gonna use a couple of images... basically I want to make an interaction of this type: in a 2D game, so ...
3
votes
0answers
553 views

Unity Network Animations Not Smooth

I am attempting to learn Unity Networking using the new UNET framework. I have a functioning rudimentary 3rd person setup in which a host and a client can connect to localhost:7777. Animations are ...
3
votes
0answers
156 views

How do I find the face of an object?

I'm working on a build mode but the thing of it is the player is able to deform meshes. Part of my build system includes having "snap" points thus I need to be able to find the face and recenter the ...
3
votes
0answers
708 views

Particle-system in the GPU in Unity: how to load/store data from/to a texture in the shader?

I have been implementing a simple GPU-based particle system in Unity, for my current game. The setup is indeed not very elaborated: the shader receives a set of coordinates passed trough the position ...
3
votes
0answers
167 views

Filling Closed Shapes

Game Engine : Unity 5.1 Developing on Windows 7 Hello, I am using Vectrosity to draw some some shapes on screen run time. I also need to fill these shapes and none of them are really trivial shapes. ...
3
votes
0answers
69 views

How can non-CG shader code in Unity be included?

In Unity shaders, #include, #define, and other preprocessor commands seem to not be able to be used outside the CGPROGRAM section of the shader. Since these are required for compiling multiple shader ...
3
votes
0answers
199 views

Unusual black squares in transparency effect after wake from sleep

I've encountered unusual black squares in semi transparent textures for a while now, usually in processes that were resumed after the computer woke from sleep. For example I've seen the effect in the ...
3
votes
0answers
621 views

Unity - reconstruct position from depth

I am using Unity and I want to reconstruct position from depth and frustum corners in pixel shader. I am doing this: In my App, I calculate view-space corners of the far frustum plane and pass them ...
3
votes
0answers
481 views

Getting Image From Android to Unity3D

I am trying to get an image from the user gallery and import it in unity. I have written a native plugin in Android Studio and exported JAR as it’s needed for the native stuff to get working. I am ...
3
votes
0answers
273 views

Changing AnimationOverrideController “sometimes” fails - Unity 5.2.1

I have the following code, in a menu where you can chose the armor and weapon of a character: ...
3
votes
0answers
52 views

Why does interactive cloth not appear in game view in unity5 Pro?

I used interactive cloth fir flags in unity5 Pro version and it appears in scene view but does not appear in game view while playing. What can I do for that please somebody help me out?
3
votes
0answers
48 views

MoCap data files applied to avatars using Mecanim

I am applying some animations (e.g. running) from this free MoCap package that I got off the Unity Assets Store, and as far as I can see from running the animation previews, they seem fine (i.e. ...
3
votes
0answers
4k views

How to create water with ripples in custom places for top down game in Unity?

I want to make topdown row boat game with Unity. I want graphics to be simple (sprited), but the water must be "very nice" and realistic and it should reflect movement in it (paddles and boat movement ...
3
votes
0answers
2k views

In Unity on Android, how can I rotate an object with the accelerometer?

I'm making a game where you control a platform with balls falling on it, and you have to balance the balls and prevent them from falling off. I'm currently using a mouse to control it with this code: ...
2
votes
0answers
23 views

How to properly write “stick to surface” character logic that handles unexpected large time deltas?

I've been trying to wrap my head around this issue: in a 2D platformer game (but this may as well apply to 3D games) I want the character to "stick" to the surface that it's moving along and at the ...
2
votes
0answers
34 views

Line Renderer 2d Follow the edge

I am using mouse position to draw a line using line renderer 2d. What i want is when the line hits a collider it should start to draw on the edge of the collider rather than over the collider. ...
2
votes
0answers
26 views

Unity Prefabs set to Read Only?

I have a collection of different enemies that I save as Prefabs with default AI settings. I drag them into the game world and apply changes to the AI as necessary. Every now and then for some reason ...
2
votes
0answers
46 views

How should I organize 2D sprites?

I'm using a Unity Tilemap in my 2D game, and I have several hundred 32x32 sprites. Most of the examples I've seen using sprites have a few consolidated sprite sheets that contain all of the game's ...