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)

-2
votes
1answer
33 views

Script to change size of a cube when pressing a button [on hold]

I am very new to coding and very bad at it. In my environnement there is a table, and i would like, after pressing a keyboard button, to make a cube appear. Then, by pressing another button, i would ...
0
votes
2answers
120 views

Optimizing file-size of a sprite-sheet for a 2D game

I have a question regarding the method of creating a sprite-sheet so that it will not consume to much disk space and still preserve graphics quality. I was researching about this topic and found ...
0
votes
1answer
48 views

After collision of two objects change the sprite and move in its direction

I've searched a lot for this question but there was no answer that could solve the problem I'm having. I'm new to unity and a very naive developer.I'm making a game in unity using c# and it's like a ...
1
vote
0answers
49 views

Rushing river water [closed]

I am creating water in unity3d engine, I tried many shaders (flowmap,flow texture,etc) but I am not quite sure how to get the same effect displayed in the following img? http://imgur.com/KduUpaz
0
votes
1answer
42 views

Editing a new list of vector3's without changing the original list? (Unity) [on hold]

I just got Vectrosity for Unity and need to make a line of all the destinations for an object. Issue is that I need to use a single list of vector3's to create the line (as far as I'm aware). I have ...
1
vote
1answer
33 views

How to make a textured tree model outside of unity that can be used in unity

So I am trying to make a 3d model of a tree that is textured that can be used in unity. So far I have tried two separate ways to do this and they both didn't work. The first time I used blender's tree ...
0
votes
2answers
35 views

onCollisionEnter2D not behaving as expected

I have two game objects. They both have a Rigid Body 2D and a Box Collider 2D components. One of them also has script component. Below is the full script using UnityEngine; using System.Collections; ...
0
votes
1answer
30 views

How can I add an animation curve to an object with no animations?

I want to scale text in different ways over time. I figured the best way to do this would be an animation curve. It turns out I need an actual animation clip just to create this curve. My question ...
0
votes
0answers
23 views

Unity: scaling and animations

In my Unity project I have a script that programmatically changes the scaling of an object during the game. Recently I wanted to add a spawning animation clip to my object, which modifies the ...
0
votes
0answers
18 views

Parameter Hash does not exist [closed]

I am making sliding doors in unity Steal Tutorial project and using the HashIDs script to reference stuff. Getting this error : Parameter "Hash 71445658" does not exist. Well i see the HashIDs ...
1
vote
0answers
26 views

Different Screen Sizes and Camera in Unity

Now I know that no matter what the screen size is the camera will keep its height, so no worries about that. My question is, is there a way to manipulate the camera, either its orthographic size, or ...
0
votes
2answers
64 views

How to stop rotation every 90 degrees?

I was facing another rotation problem yesterday, that i managed to solve by rotating the object like this : transform.Rotate (speed * Time.deltaTime, 0, 0, Space.World); I tried almost every other ...
0
votes
0answers
35 views

How can I write algorythms for dungeon generation in Unity3D? [closed]

I'm currently working on a roguelike project which for the dungeon generation requires some work with Points and Delaunay Triangulation + Minimum Spanning Tree to connect various rooms of the dungeon ...
1
vote
1answer
31 views

How do I make my camera follow my cube?

I've recently started to learn some C# scripting in Unity. I've been able to make my PlayerCube move around using Vector3 Transform.translations, but I want my camera to follow my cube while moving ...
1
vote
1answer
61 views

Random, Infinite Terrain Generation [closed]

I'm trying to generate random terrain for my game (In Unity3D, C#). All I need is water and grass. No height to it (no mountains or hills.) I'd preferably like to do it by placing individual cubes. On ...
0
votes
1answer
34 views

Unity3d webplayer failed to download data file

When testing my game web builds on localhost, I get the error "Failed to download data file". The game data file is correctly placed, and the page loads fine, it just wont download the plugin, or ...
0
votes
0answers
23 views

Grab all tiles within a radius?

I'm working on a 2D tile based game. I want NPC's to be able to destroy tiles, and ideally I would have a function, which takes a central x,y and then based upon a circular area from that point ...
1
vote
1answer
48 views

2.5D Game - Using overlay as map

So a friend of mine and myself are starting to create our first game together. We descided on doing a 2.5D kind of game, so a static camera that moves with the player but cannot rotate. I got the ...
2
votes
1answer
22 views

How can I prevent seams when attempting to create a skybox for Unity5?

After following the documentation for how to create a skybox, seams are appearing around all sides of my 6 textures (sorry for faintness of image): There are no active lights in my scene. What am I ...
0
votes
2answers
34 views

unity2D Top-Dow Mobile rigibody2D

im using this code for my 2D TopDown mobile player movement.but when i move player With UI Image buttons player keep moving.it didnt stop.and also player starting of move he is very slow. the he ...
3
votes
1answer
73 views

Geometry Shader not generating geometry for some Vertices

I am playing with a geometry shader and I am wondering why it doesn't generate geometry for each vertex in all meshes? I don't think this is a Cull problem because the same vertices generate ...
0
votes
1answer
52 views

Rotate Camera around GameObject in Unity [on hold]

Using Unity 5's new touch system, how can I rotate the camera around an object using touch detection, or "swipes"? I can do this using earlier versions of Unity, however the more recent version, Unity ...
0
votes
1answer
70 views

Delegation in unity C#

I have a game where I have balls bouncing and you shoot them. Since I need a way to end the level when the player shoots all the balls I though I would create a game controller script which will ...
0
votes
1answer
82 views

Unity 5 How Do I Set Text of Text Component of Input Field

How do I set the text of the new Input Field's Built In Text UI Object in Unity 5+? myInputFieldText.text = "Text Value I Want"; The code above does not work to set the text inside of a ...
1
vote
1answer
76 views

Tile Map Shader?

I'm trying to write a shader in unity that will take tiles from a sprite sheet and draw them onto a tile map. I'm new to shaders so this might be totally wrong, I think it might just be a math error ...
3
votes
2answers
147 views
+50

How to change mobile device screen size in Unity for testing?

For an experiment I need to be able to dynamically adjust the screen size of my device. I'm using a Nexus 5 (5") and want to fake the screensize to 2", 3", 4",.. See images: Is this possible ...
0
votes
0answers
24 views

Unity3D Mobile System Fonts | Include Font Data | and Licensing

Working with type for Unity mobile apps: I'm struggling to figure out how to work with type when developing / publishing a unity mobile app. Here's my thought process, this isn't my question but if ...
0
votes
1answer
35 views

How can I rotate a Transform over a specified time in a single line of code? [duplicate]

How can I rotate a Transform over a specified time in a single line of code? I have had a lot of trouble with this in the past. I wrote a script which rotates a Transform by a specified rotation ...
3
votes
1answer
143 views

How to correctly draw a line in Unity

I'm working on a game which requires me to draw a few lines from a single point that is more formally said Given point A with coordinates x,y I draw n lines where the i-th line has the coordinates ...
1
vote
1answer
59 views

Apply an special effect to an scene area

I have a 2D game where I have a second camera on my scene, that renders an upside down image of the scene, and distorts it, giving the effect of water reflection. I render this camera first, and on ...
1
vote
1answer
38 views

Creating a curve path for gameObject which reacts to Triggers

I am trying to create a path for a gameObject which will bounce off other gameObjects if it hits them. Can I get an idea on how I could possibly get this curve path set up. Stuck on ideas. I don't ...
0
votes
0answers
75 views

Unity 5 - Cloth Constraints

I'm trying out the new Version of Unity 3D (5.0.0.4f) and figure out whats new, whats possible now. My experience with Unity 4 free is also just a little. Anyway I work with the "new" cloth component ...
-1
votes
0answers
17 views

Where is ErrorCode List OpenIAB for Unity-plugin? [closed]

i canceled purchase in app. i thought to back errorcode "-1005". but, back errorcode "-1" for iOS... (Android is OK "-1005") please help me T_T
2
votes
1answer
68 views

How to enable IntelliSense for Unity scripts in Visual Studio?

I am using Visual Studio 2013 pro and Unity 4.6. Whenever I write scripts (javascript or c#) for anything and open it up in Visual Studio, I don't get IntelliSense. How to fix this issue?
0
votes
0answers
48 views

How to get the position of a moving object

I need to get the position of the moving game object.But when I run the below code I always get the same position. public Vector3 position_store; void Update() { ...
0
votes
0answers
33 views

EventSystem.current.IsPointerOverGameObject getting clicked through UI buttons in android devices in Unity 4.6.3p1 [on hold]

In my game, there are 2 UI Panels with 4 buttons on the screen. One panel is at the bottom, and the other panel is at the left side of the screen. The bottom panel is always visible through out the ...
0
votes
0answers
30 views

Why is my car turning? [closed]

I have built a car in Unity, one that uses the wheel collider, and using the properties already attached to steer and drive. However, one problem my peers and I are having trouble solving is that the ...
1
vote
1answer
41 views

How can I refactor an enum so that it is still available in the inspector?

I am trying to use an enum so that it is available in the inspector. This code works: public ArmorTypeEnum ArmorType; public enum ArmorTypeEnum { Light, Medium, Heavy }; How can refactor it into a ...
1
vote
3answers
75 views

Learning To Use C# In Both VisualStudio And Unity's Monodevelop Frameworks

I apologize if this has been asked and answered, but I can't find it. I know the framework is different in MonoDevelop and Visual Studio 2010 Express. For instance, if I want to use Write.Line, I ...
1
vote
0answers
15 views

Specular intensity not imported from Blender into Unity

For my current project I'm using diffuse materials for my models in Blender but I do not want any Specular Intensity so I've set that to 0. Yet in Unity there is still a specular highlight and the ...
0
votes
1answer
104 views

How to animate objects with bobbing up and down motion in Unity?

I have created a 2D platform game with Unity and C# where I have collectable items that can be picked up by the player. What I want is to give the items more focus by having them bobbing up and down. ...
0
votes
1answer
40 views

Player position on second player connection

I'm having some trouble trying to run my game for the multiplayer part. I'm creating a 2d game. I have followed this tutorial : ...
1
vote
1answer
46 views

Position and rotate a 2D point array into a 3D world

I have a set of 2D points (defining a flat 2D 'connect the dots' shape). I want to calculate the 3D positions for these 2D points at a specific 3D position and rotation. For example, say I have five ...
1
vote
0answers
23 views

Update Based Animation Position Values?

Is it possible to control the key-frame/sample value or the time based position in the animator? I’ve set a global float that identifies the rotation of an object on its Y axis and I would like the ...
1
vote
0answers
55 views

How do I Animate a character in Unity3D (Animator)?

first of all, I am new to Programming and Unity, but I want to create a simple game with Unity3D. I am using the StandardAssets (character) where all animations are included, but I dont get how to ...
2
votes
1answer
134 views

3d compute shaders in order access

I'm working on a compute shader for a 3d texture where I want to evaluate pixels in a specific order, is there any way to do this? let's say that I have made a texture using the following code; tex = ...
0
votes
0answers
25 views

unity plugin for android (failed to receive dispatch signal error in logcat) [on hold]

i m trying to make a unity plugin for android. The plugin will show the native android dialog box when clicked on a button in unity. But when i click the button an error arises in the catlog and ...
1
vote
2answers
89 views

Making a cube slowly rotate 180 degress one time on a mouseclick

I am new to C# and new to Unity. I made a script that can turn a cube slowly one time after a mouse click but I feel like its probably wrong for using FixedUpdate. Is this OK or is there a better way? ...
0
votes
1answer
42 views

Selecting minimum GPU requirements for a video game a couple years out

How does one go about determining a good minimum GPU requirement for a game that development is starting on that will be published in approximately 2 years. On one hand you want as many people as ...
5
votes
5answers
285 views

Should I ask my artist to make Sprites in full resolution or can I scale them up?

I'm started with Unity development and my artist asked me what size she should make the sprites for the game. They are all pixel art and she didn't know if she should make them on Photoshop on a ...