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.

learn more… | top users | synonyms (1)

1
vote
1answer
108 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...
0
votes
2answers
53 views

How to address raycast failures due to tiny holes in a mesh?

Problem: I have a racing circuit that is made out of tiles, each of which is made out of 2 triangles. I need to know over which tile my craft is hovering on; but since there are tiny holes between ...
1
vote
1answer
88 views

Can't call GameCenter in my Unity game for iOS

I'm trying to integrate Game Center into my Unity 5 project and facings troubles. It seems that authentification is OK when the game starts on iOS device, a notification appears, but leaderboard ...
-1
votes
0answers
25 views

What engine should I use to make an open world, 2D sandbox sidescroller? [on hold]

As the title says, I want to make an open world sandbox that is a 2D sidescroller. I have considered Unreal and Unity, but I'm not sure which, and I haven't completely shut out the idea of making my ...
0
votes
0answers
10 views

I don't know how to animate a child in unity

I am making a FPS Zombie game and I have the walking animation attached to the player camera and i have the gun attached to a game object called "gunPoint" and that is a child of the player camera. I ...
0
votes
0answers
14 views

How can I hide the Transform in a Prefab?

I have a prefab. It has a script attached that has this code: void Reset() { transform.hideFlags = HideFlags.HideInInspector; } If I create it, the Transform is hidden. Good. When I move it ...
1
vote
1answer
140 views

Using .svg in unity(2D)

Creating resolution independent sprites is tough and memory consuming. How can .svg assets be used in unity for any kind of 2d game? What are alternatives to .svg that can be used in unity? Can ...
0
votes
0answers
15 views

Unity Commands giving warning “Trying to send command for non-local player”

I am trying to spawn objects on the server(then spawn from server to client) calling from the client but I get this warning and it doesn't spawn: Trying to send command for non-local player. ...
0
votes
1answer
54 views

Resolution independence (for touch input on different mobile screens)

I have drag mechanic in Unity game and I want to have same experience in all devices. I've done this before in another game engine and now that Unity gives us Dpi with Screen.DPI, it should be much ...
1
vote
1answer
329 views

Unity 5.x Network Synchronization Concepts

Bear with me, It will be long read^^ I am working on the new Unity Networking system. I was using Photon and old (legacy) unity network API's before. But as it seems there are some good benefits of ...
0
votes
0answers
11 views

Animator Component gets removed automatically - Unity

I am creating a simple scaling animation on image (in Unity). When I play game in unity editor, the animator component get removed automatically. Here I am copying snapshop of Inspector of Image. ...
1
vote
2answers
29 views

How can I register Mouse Events in the Scene window of the Editor?

I want to create a custom level editor for the level designers that should allow them to place predefined objects in Unity3d similar to the Terrain wizard. How can I register Mouse Events in the ...
0
votes
1answer
84 views

Calculating unique ID number from a set of bitmasked tiles

So I write this kind of match3-style game where you as a player need to match tiles with three or more of the same type and I'm thinking what is the best method to recognize the shapes without writing ...
0
votes
1answer
38 views

Assign a ScriptableObject to MonoScript through code

Sample code: public class Item : MonoBehavior { public ItemObject item; //the scriptable object void Start(){ // do stuff} } Normally I would drag and drop the asset of the ...
0
votes
1answer
35 views

How to make an object fly disabling gravity through C# script in unity

I want to make an object fly which has ridged body physics by disabling its gravity after pressing a key. So I just want to know how to disable gravity through C# script. I already went through google ...
0
votes
1answer
33 views

Unity 3D - create autonomous moving robot in house + first person camera movement

I have very, very little knowledge about programming or Unity. I have done some basic tutorials, but I want to try something harder. The thing is, I don't know where to start. If you find the time to ...
1
vote
1answer
22 views

Level/Asset design for performance Unity

I am a big fan of modular assets. Currently I am designing a 3d game for mobile and I don't know how I should create my levels to get the most out of the device. Should I... create lots of "small" ...
0
votes
1answer
14 views

How to get which gameobject the mouse is over in Unity?

So I'm working on a simple drag-n-drop based trading card game for my own amusement. There is a card inspector included. What I want to achieve is to change values in the inspector (which has its ...
0
votes
2answers
111 views

Detect Input.GetMouseButtonUp outside a GameObject in Unity?

How do I detect Input.GetMouseButtonUp outside a specific GameObject's area in Unity? Are there any Unity Assets for this?
0
votes
1answer
54 views

How can I handle multiple force in Unity?

I'm trying to get my character to perform a "dash" where their x velocity increases rapidly and then falls over time. However, I'm also maintaining a constant x velocity so the character appears to be ...
0
votes
0answers
8 views

Unity and C# - Lighting concentrated on floor with RenderSettings? How to get even lighting on all objects?

I am just getting into lighting with Unity 3d and right now have a function that progressively deepens the lighting of my scene here. I have done this via Render Settings and have tried 3 different ...
2
votes
1answer
161 views

Unity Engine: How to change mointor/desktop resolution in 4.5.3 and higher

As of unity 4.5.3, Screen.SetResolution and the Unity Resolution Display Dialog, by default, no longer change the monitor/desktop resolution. Instead, it only changes the render target resolution for ...
4
votes
1answer
111 views

How do I change a value gradually over time?

I'm using Unity3D 5-point-something, and I'm planning on making a game where the player travels through a hot, dry desert, and so the heat causes the player's energy to deplete. The object of the ...
1
vote
1answer
560 views

How to import animations from one model to others

I have two models (one animation in each) which I got for free from Mixamo. I imported them in Unity and they look like this: http://imgur.com/atjQbkI Justin@Idle and Justin@Walking. As can be seen ...
0
votes
2answers
46 views

Unity 3d: Animating Offset on a Quad is causing stretching issue only with iOS devices - Using Wrap Mode: Repeat

I added a 3D Object > Quad and added a graphic on it with the Wrap Mode set to Repeat. I'm animating the Offset to scroll the repeating image for a parallax effect. Everything is working perfectly ...
1
vote
1answer
190 views

Increasing friction or Adding force relative to transform position in Unity 2D?

Back again with a quick question! I have a few basic platforming mechanics going on in this scene. I have a prefab platform with an animation that loops back and forth between two different x ...
3
votes
1answer
33 views

Matte reflection effect in Unity?

I'm trying to achieve that kind of scene but in real time using Unity. It's basically composed of some primitives, a skybox, and a plane. I'm intrigued on how to do this effect in particular: ...
4
votes
4answers
3k views

Does “Object.ToString().GetHashCode()” return a truly unique character seed?

In my game I'm generating a character seed from a bunch of traits that the player chooses. The traits are all part of a Enum. In unity I've attached a script to a bunch of toggles. When the player ...
1
vote
1answer
422 views

Image target display in unity Vuforia

I am using unity 4.5.1f3 and using the Vuforia sdk 5.0.5.I have downloaded the sample project from the Vuforia site.When I tried to run the sample of Imagetarget project,it asked to add license ...
0
votes
0answers
10 views

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded

I am creating a project in Unity 5 free and using external dlls. I have a scene that is running normally within Unity but when I try to build the project as a standalone windows game I get this error ...
0
votes
1answer
91 views

Uncontrollable platform spawning

I made simple spawner like this: void Update() { if (PlatformPosition.spawnNewPlatform) { NewPlatform(); } } public void NewPlatform() { if (active) { newTransform = ...
0
votes
1answer
20 views

Play and Stop Animation on Condition - Unity

I've applied a scale animation on Play button of my game. I want to stop animation when play button is not interactable. It stops playing animation, but animation is not playing again, even when play ...
2
votes
1answer
5k views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
1
vote
0answers
22 views

Support mapping

Hello I'm Trying to implement a quickhull 3d variant as explained in this paper. http://www.xbdev.net/misc_demos/demos/convexhull3d/paper.pdf But It seems that I'm failing at implementing the ...
3
votes
2answers
561 views

Preventing a Combination of Rigidbody Jump Force & Bounce Magnitude in Unity3D

I'm building a fairly simple marble racing game in Unity3D. The ball is a 3D physics object that moves only on the X and Y axes. It has the ability to roll left and right, and to jump. Pretty basic ...
0
votes
1answer
110 views

Unity iOS build failed : Apple Mach-O Linker Error [on hold]

We are using Unity v5.3 and Xcode v6.3. When we are trying to build for iOS, it throws error in build process: "Apple Mach-O-Linker Error" - with tons of errors similar to this: duplicate symbol ...
0
votes
1answer
47 views

Top Down Bullets will not move

I have a top down shooter. The player can move in the primary 4 directions, and follows the mouse for rotation. When I shoot, the bullets never leave the player, they just spawn on top of the player ...
6
votes
2answers
121 views

What are these odd distortions on far away textures?

I'm currently writing a simple voxel engine just to get some practice in, and I'm coming across some odd issues. In order to generate terrain, I create a mesh and then assign UV coordinates on a ...
0
votes
1answer
37 views

Quickly Converting RenderTexture to Texture2D in Unity3D

I have a screenshot preview at the end of the game's level. When I am loading the screenshot, it makes the game freeze for a moment. What may I do so there would be no freeze when I am loading that ...
2
votes
1answer
736 views

Why does my Unity Android export fail with “No resource identifier found”?

When I try to export my Unity game to Android, I get this error: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android SDK ...
0
votes
1answer
79 views

Why are faces being drawn like this with my custom shader?

I've been writing a custom surface shader which allows for vertex colors (with alphas) to be set programmatically. From test runs of the shader itself, it works perfectly fine, and I am able to set ...
0
votes
1answer
37 views

Basic billiards game: Can't detect collision between cuestick and cueball

I have a basic Unity project on GitHub. Basically, I have a Cuestick that aims and shoots using the mouse. You can rotate around the cueball with your mouse and when you're ready to shoot, you can ...
2
votes
1answer
469 views

Mesh fading to transparent

I have a 2D Mesh object generated at runtime painted all with uniform color. I want that mesh to have its color fade to transparent color close to the edges. Despite I searched everywhere I could not ...
0
votes
1answer
139 views

Is there any way to bring animation into unity without a rig/bones?

I am developing for mobile and to make the game run on lower spec mobiles, I was only going to import bones/rig for the main character. There are other humanoid characters in the scene which do move ...
1
vote
1answer
28 views

How can I get an asset for my ObjectField?

I am trying to learn how to use ScriptableObjects. I have an ObjectField: Foo myFoo = null; myFoo = EditorGUILayout.ObjectField("My Foo", myFoo, typeof(Foo), true) as Foo; I have a Foo in my Scene ...
0
votes
1answer
221 views

GUI.Box z-index for mouseover

So I am drawing an inventory with slots like so: private void DrawItemSlotAndAttachActions(Item currentItem, Rect slotRectangle, Event e, int itemSlotPosition) { if (!(currentItem is ...
1
vote
1answer
226 views

How can zoom into my object when that object is being clicked?

Suppose that I have the three game(cube,Quard,sphere) object. When I click on a particular game object suppose think I have clicked on the cube,the cube object should get zoomed in on the screen. how ...
0
votes
2answers
41 views

How to handle global Data within a state machine setup? (C#)

I am currently building a turn-based framework (Unity,C#) I was tired of my former tight-coupled systems and opted for a state machine this time, basically all components subscribe to the state-Enter ...
0
votes
0answers
19 views

Resizing a procedurally generated arc mesh

I have a script that generates a mesh representing a 2D arc. This arc is generated when the game starts based on a size (radians), width, etc... I would like to know if there's any fast way to resize ...
0
votes
0answers
33 views

Unity Mask shows black content in world space canvas (Vuforia)

So I've built my scroll rect, like this reference tells me to do : http://docs.unity3d.com/Manual/script-ScrollRect.html -> Scroll View (Rect Transform with scroll rect attached) ---> Viewport ...