Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
1answer
20 views

Can't edit specific variables from the inspector panel, while variable is static

In order to make the variable accessible from other classes, I have to make it static. When I make it static, I can't edit it from the Unity's Inspector panel. No way to be able to do both: ...
3
votes
2answers
114 views

Update vs. FixedUpdate in Unity

I was told to use Update() for graphics and FixedUpdate() for physics, but sometimes my inputs won't register when I use FixedUpdate(). It works fine if I use Update() for everything though. Should I ...
0
votes
4answers
46 views

Why are my Unity procedural animations jerky?

I'm working in Unity and getting some crazy weird motion behavior. I'm trying to move a plane by cos and sin so it will spin on the x and z axes. If the planes are moving at Time.time, everything is ...
4
votes
1answer
429 views

Should I be concerned about assets being accessed by dumping VRAM?

I have heard many people tell me that a user can dump the VRAM on their GPU and get all the images in my game. Including all "Streamed" images. This includes most of my Menu graphics. How would a ...
8
votes
2answers
1k views

Does Unity own my game?

I made my first game in unity, and I was wondering if I can sell it without owing anything to unity?
0
votes
1answer
27 views

Unity platform pathfinding

I've been trying to find a way to do this but I'm not sure how. I've gone through A* pathfinding but could find anything on this. What I'm looking for is pathfinding for something kind of like a super ...
0
votes
1answer
72 views

Projecting a light onto a quad

I need to project the light onto the quad and use its value for translating the vertices. I'm currently having 6 vertices, two quads, The points are A X C B Y D Point X, Y are coming from two ...
-1
votes
0answers
30 views

What platforms are unity good for? [on hold]

I recently read Unith have released support for the nintendo wiiU and are working on the 3DS. This has made me think about learning unity but moat of the questions regarding unity i see on here are ...
0
votes
1answer
47 views

How can I implement simple distributed processing in a Unity game?

I'm looking to set up a game which uses distributed processing. Just a simple brick shooter in unity with the distributed part being that the calculations for the falling blocks are handled by another ...
1
vote
1answer
55 views

How can I play an animation in response to an event?

I've written a script to play an animation, but it starts immediately as my level loads. Instead, I want it only to start when triggered by some event or after a given timeout. How can I do this?
0
votes
1answer
46 views

Is this Possible to force gameobjects (coliders etc) to get stretched based on the aspect ratio of the screen?

Well with unity3D, I am in big trouble whenever I use sprites. As for textures I compensate for a evener look by Stretching it (Screen.width & Screen.height- that's fine for low end 2D games). Now ...
-2
votes
1answer
79 views

Why is my Snake' tail rendering the wrong sprite? [on hold]

I am making a snake game in Unity. The game is simple, using Texture2D to display the head, tail and body parts. I am stuck with this problem: I stored 4 textures (each one for one of the four ...
5
votes
1answer
104 views

How can I implement Objective-C libraries in Unity?

I've been a "hardcore" developer for sometime now, as I've always worked with pure code reactive rendering, and contributed to Cocos2d library some time ago , (It is the one I used for my games) . But ...
-2
votes
0answers
23 views

Unity Question: Destructible Boxes [closed]

How would I go about creating a destructible box within unity? I am going for the videogame cliche "OOO look a box! There's stuff in that y'know"!
0
votes
0answers
59 views

What do you think about my starting setup? [closed]

I will start soon with learning Game-Developing. I already coded some programs and such things but 3D objects where have long ago. Now my question to you is, is this setup okey to begin with? Blender ...
0
votes
1answer
116 views

Textures in Unity3D appear with lower quality than in Photoshop

I made game assets that look great in Photoshop, but they look like crap when I import then into Unity and run the game. Why?
0
votes
1answer
64 views

Level loading works in Unity editor, but quits when deployed

In my level selection screen, all but the first level start out locked. When I click on a level, it loads perfectly in Unity editor. However, when I build the game on a real device, the game stops as ...
0
votes
2answers
54 views

how to call the specific animation?

I have a script to control the player simply moves Left, move right, etc.. but the animation when winning, losing, or Light, just put it on the animation and animator and no script for it. I wanted ...
1
vote
1answer
67 views

Animating feet seperately from the body

I have a character and I would like to animate a walking animation for it. However i get the following result when I animate it: (ignore the green lines/ markers/ sound) As you can see the foot ...
2
votes
3answers
159 views

Should I use scenes in Unity for menus?

I assume scenes are for different levels, but should I use them for menu screens or is there a specific tool for menu screens?
-1
votes
0answers
41 views

2d top down tank movement

I am trying out an idea of a tank like movement in a top down 2d game. I'd like to: get the float values of both left and right triggers I have from an xbox controller (float values from 0 to 1). I ...
0
votes
0answers
38 views

3D model editor manipulators

I'm trying to make my own 3D model editor to better learn 3D programming. I have my translate manipulators and I'm trying to calculate the Vector2 that the mouse would have to move in order to move an ...
1
vote
0answers
67 views

Frequent stuttering, high FPS spikes with VSync option turned on in Unity standalone build

I'm experiencing an issue using Unity 4.3.2 and standalone builds. If I turn on VSync in the project's Quality settings, running the game at the native monitor resolution, I'll frequently get high ...
2
votes
2answers
100 views

Print on the GUI in Unity

I'm trying to show the players name on the GUI with a label. GUI.Label(new Rect(10,10, 100, 30), playerName); Instead of use the default style I want to use a different font with larger character. ...
2
votes
0answers
29 views

How can I switch between texture atlases based on the iOS version?

How can I switch between atlases (with different resolutions) in Unity based on the runtime iOS version?
2
votes
2answers
61 views

Can I make a character solid but not lose non-physics behaviour?

My character can walk around in the world, but walks through other objects, for example a cylinder (stand-in for a cannon). To fix this I added a capsule collider to each of the character and ...
0
votes
1answer
65 views

How to create public Arrays of game objects so that they can be assigned through inspector

I am making a unity2D game. I need to declare public array of gameobjects so that I can assign them colliders, textures through inspector by drag n drop. Is there any way to do this? I am using c#. I ...
2
votes
3answers
43 views

How can I reorient the axes of an object?

I spent some time in Unity yesterday trying to fire a sphere from a horizontal cylinder (like a ball from a cannon). I was using Vector3.forward, but the sphere kept coming out the top of the cylinder ...
1
vote
2answers
46 views

Can you adjust the proportions of a 3D model via scripting?

We are developing a game in Unity where the character is different ages in different levels. Would it be possible to use a single 3D model asset, and alter its proportions via scripting to achieve ...
0
votes
1answer
47 views

Variable Jump in Unity3d

I implemented variable jumping in unity for an endless running game. My question, how can I make the jump frame rate independent? My algorithm if ( keyDown ){ isJumping = true ySpeed += ...
8
votes
4answers
355 views

Infinite 3D Cave in Unity

A friend and I are hoping to make a game in Unity in which you fly through an infinite 3D cave that can twist and wind in any direction (though obviously not to the point that the turns are impossible ...
2
votes
1answer
62 views

Possible to create transparency shader which doesn't stack alpha values

The image above best demonstrates what I'm trying to achieve. It's a transparent shader for objects, but wherever the objects with this shader intersect they don't add together but simply merge with ...
1
vote
0answers
37 views

SpotLight in ForwardBase pass using forward rendering

Is there anyway I can force Unity to allow me using a custom shader to render spotlights in a ForwardBase pass (using Forward Rendering Path)? For what I could see since now: Unity use and ...
-1
votes
0answers
32 views

How a game menu can be made easily without using paid plugins [duplicate]

I want to make game menu in which various stages are present, but they are locked unless user plays initial stages and earn score to make them open. I want to use swiping controls so the user can ...
-2
votes
1answer
139 views

How to make game menu in Unity using only the editor?

I am trying to implement a game menu screen in which all the levels are locked initially. Just like Angry Birds. When user scores he'll be promoted the level unlocks.
0
votes
0answers
34 views

Unity not updating sprite animations (possible bug)

I have a simple animation of a foot which i want to change sprites from one sprite to another, which is seen in the following two images: now as one can see in the animation timeline there is a ...
1
vote
0answers
41 views

Using Behavior Trees and Events together

I am beginning to work with behavior trees and am unsure how events should be handled within the tree. Lets say we have a space game where the player is dogfighting with a handful of other ships, some ...
0
votes
2answers
88 views

Unity Grid System

I'm creating a tower defence game and I've been struggling on one of the core parts of the game. What I'm trying to do is create a plane that the user can clink on and build a tower at that location. ...
1
vote
1answer
48 views

How can I make an attached gameobject behave correctly on character flip?

I have a character that on start-up is equipped with another gameobject/prefab as a weapon, attaching it to a hand. void Start() { handFront = transform.Find ...
0
votes
1answer
41 views

How to Integrate Unity with Google Play Game Services for iPhone and Android games

I want to integrate Google Play Game Services for Apple's iOS and for Android. How can I do this efficiently?
-1
votes
0answers
27 views

Shake Device on Orientation Change

I am developing 2d game with landscape and portrait orientation support. I write following code for this purpose. public class DeviceOrientationController : MonoBehaviour { private bool isLandscape; ...
7
votes
1answer
176 views

Finding the correct speed for AI to turn to reach goal

I have a ship that travels at max speed maxSpeed and can turn rotationSpeed degrees per second. The ship always moves in the direction it is facing which means that the faster the ship is travelling ...
0
votes
2answers
80 views

How can I make RPC function calls in Unity?

I am making a multiplayer game. I am sending score via the server and client but I want to be sure that can I call an RPC function of a script from any other script. For example, say Table_Manager as ...
1
vote
1answer
45 views

How to put basic scripting/variable changes into dialog xml files?

I have a simple XML structure for my dialog between the player and NPCs. What I'd like to do is put variable changes (and maybe other things) directly into the XML. So, for instance, if you select a ...
0
votes
0answers
44 views

Script to intelligently move aircraft using curves [Unity]

I am trying to code a script to move an aircraft entity from point A to point B and at some point in the middle of moving have the aircraft forward vector face Point C (to fire a missile at an enemy ...
0
votes
2answers
179 views

How do I randomly spawn objects in 2D game?

How do I randomly spawn few different sprites on screen so they're not overlapping or half visible on render. The sprites should immediately start shrinking until they disappear. I've tried to ...
-1
votes
0answers
21 views

access camera animation on unity from scripting

i have made a simple animation for moving the game camera from one site to another, for the purposes of showing a menu, and then, going to the zone of the game itself. I do this using the animation ...
2
votes
2answers
132 views

Shader that “cuts” hole through all geometry

How can I create a shader that "cuts" through all geometry, only rendering the clearing background in Unity? An example: That's a prism in a huge white box-shaped room. The surface of the prism is ...
0
votes
1answer
43 views

Playing an animation relative to current Transform in unity?

I have an animation created with the built-in dope sheet. It plays correctly but I would like it to be played relative to current object transformation. For example I have a palm tree that moves its ...
2
votes
1answer
48 views

Adding an object viewer to a Unity Editor Window

I'm wondering if its possible to add an object viewer (For example when you import an .fbx file into unity you can see a small preview of it in the inspector) to a Unity Editor Window? I've looked ...