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
11 views

Transparent texture over colored polygon?

Let's say I have a cube with each face having a different colour. I want them all to look like brick walls, but I don't want to have to recreate the same brick texture for every colour. Is it ...
0
votes
0answers
18 views

Access public field of other module in unity [migrated]

I'm trying to read a field from another class library(mod) for Kerbal Space Program. I cannot directly access the field since the compiler is not aware of it and it is of a different namespace. ...
0
votes
0answers
14 views

unity button for 2d missing [on hold]

I have read online that to create a 2d project in Unity, all you have to do is say New Project, and click the checkbox at the bottom. When I do this, there is no checkbox. What am I doing wrong? ...
0
votes
0answers
18 views

Unity instantiate object in a grid?

I'm trying to get some objects to spawn in Unity on the a grid which I located. However while the objects do spawn on click, they are not placed on the grid. The objects spawn in a random location off ...
0
votes
1answer
84 views

Automatic Left/Right movement

First 2d game in Unity. Started Character controller in C#. Tried to get the character to move constantly right then once it hits the wall move left without needing any input from the player. Looked ...
2
votes
1answer
63 views

what is the simplest way to get player selection system like checkers in unity 3d c#

like lets say the board is a top down grid like if your were in front of an actual checkers board i want to figure out how i would be able to select/deselect a piece then select/deselect a space on ...
2
votes
3answers
87 views

How to display a GUI Texture for a certain amount of time

Is it possible to make a gui Texture display for a certain amount of Time.
1
vote
2answers
76 views

Simple square hit the wall and turn around without stopping

I am coding and making my very first plat former game in Unity 4.5 2D. Basically I want my character to ping pong between two walls. I have set up a GroundCheck and CeilingCheck. I was thinking to ...
0
votes
1answer
27 views

Doing imagemagick like stuff in Unity (using a mask to edit a texture)

There is this tutorial in imagemagick http://www.imagemagick.org/Usage/masking/#masks I was wondering if there was some way to mimic the behavior (like cutting the image up based on a black image ...
0
votes
1answer
61 views

Binary Serialization of C# for GameObject in Unity?

I'm trying to serialize a GameObject (with children and textures) using the binary serialization for C#. It works with many data types but not with GameObject. In the docs it says should be ...
1
vote
1answer
39 views

Listen for asset modification in editor

I would like to listen for an event that some asset (prefab, precisely) has been modified. To my surprise, there's no such event in AssetModificationProcessor. Is there any way to do this in Unity?
1
vote
1answer
38 views

change texture at runtime

How can I change the texture at runtime. I have done changing the label(text) at runtime. The following code is used using UnityEngine; using System.Collections; public class switchtime : ...
0
votes
2answers
66 views

Drag an object in unity3d

I want to drag an object to a perticular place.In case I release that dragged object before I reach that particular area ,the object should come to its initial place where i start to drag. How it ...
0
votes
0answers
16 views

How to get started with cross device gaming [on hold]

I have been programming for some time now. Some friends and I want to make a game, and have it be cross device. I can handle the back end of the system, as that is what I already do for a living. What ...
0
votes
4answers
113 views

Timing of coroutines in Unity is never precise

I was looking an official example for coroutines in Unity here. However, when I call WaitAndPrint the time taken is never exactly 5 seconds. IEnumerator WaitAndPrint() { float timeStart = ...
-1
votes
2answers
36 views

Character bounces/stutters down hills

I'm using Unity3D (not 4) and I'm experiencing a bit of a problem with character movement. I'm using a cylinder as a First Person player with a child Main Camera. In this cylinder is the stock ...
1
vote
1answer
117 views

Fast, simple procedural 2d island generation

I need to generate tile data for an island based rpg, my goal is have something that looks like this (mountains not required): For the past few days I have been trying to figure out a satisfactory ...
0
votes
0answers
21 views

Unity game view differs from scene view?

I have an issue in which Unity is not showing the Game view in accordance to that of my Main camera despite setting them up as such in the photos. Would appreciate if someone could tell me where I ...
0
votes
1answer
35 views

How to draw a specific GameObject into RenderTexture in unity?

To apply my effect, I should draw only several specific objects into a RenderTexture, with their material, and then use the RenderTexture as a texture for an another object. I think ...
0
votes
1answer
36 views

Changing the object material without clicking on it

How can I change the object material automatically without clicking on it? The object material should change based on a timer.
0
votes
1answer
43 views

Changing the material on an object on click in unity

Iam working on unity2d.I have six game object Object1,Object1,Object1,(these are images) ObjectImage1,ObjectImage2,ObjectImage3(these are images). I have arranged the object in the scene as a list ...
0
votes
0answers
25 views

Realtime Multiplayer Server for Backgammon in Unity2D

I am doing a project as a student. As I'm developing a Backgammon game for iOS and Android. I have faced the problem of choosing the best method for my server. In this game users will join a room to ...
0
votes
1answer
37 views

Continous collision happening in Unity2d

I am working on Unity2d. I have a game object called gameobject1 on screen. It holds an image (named "state"). When I drag a tree on a gameobject1 collision is happening continuosly in the same layer ...
0
votes
1answer
30 views

Unity mouse input not working in webplayer build

I have a button script with the following code void OnMouseDown() { animation.Play("button-squish"); enlarged = true; audio.PlayOneShot(buttonSound); } void OnMouseUpAsButton() { if ...
2
votes
1answer
61 views

How should I set up 2D animations for weapons in Unity?

I have a character composed of several sprites (legs, torso, head, arms). The character has the ability to pick up weapons, which are of varied types. Each type of weapon has its own animation ...
-1
votes
0answers
15 views

Multiple drop down list selection [closed]

In the above image,I have created 3 dropdown list(image 1).In the image(2) when I click the last dropdwonlist its showing the items(US,United kingdom).But if i click the second dropdown list the list ...
0
votes
0answers
34 views

Change the object when the object is clicked [duplicate]

In the above image, there are different icons for New, Open, Save, Save As and alternative images for when you click the icon. I have placed these images onto game objects. In the above menu when I ...
-1
votes
0answers
35 views

Changing the object when mouse is clicked on it

I have three object, in each object I have placed an image of a text. And I have another three images as same as that text but its is highlighted with the blue color. The first image is highlighted ...
-1
votes
0answers
27 views

Projectile motion in csharp unity [closed]

I have followed a couple for tutorials and tried coming up with script that can make my object follow the trajectory but unfortunately none of my attempts worked. I understand the basic physics and ...
0
votes
1answer
34 views

Animation not playing correctly(or at all)

Im created this script which plays animation/s when the player goes close to it and presses e while aiming at it.For some reasons only the first animation is playing,not the second one.Is there any ...
0
votes
0answers
21 views

Problem with WheelCollider

When I put a WheelCollider to wheel, it's not placing same orientation with wheel, how to fix this issue? Is it related to model? Edit : It was related to model, designer fixed it.
0
votes
1answer
32 views

Generating a particle effect on top of a GUIElement (Unity)

I am working in Unity on a 2D project which is using C#. I have a number of guitextures which are hearts in order to create a sort of life meter. I would like when the player loses a heart for the ...
0
votes
1answer
78 views

In-game character creation

This is my first post here on the exchange. I have found many great and useful tips here, but there is one thing I have not been able to find a complete answer to, and it is nagging me... I would ...
0
votes
1answer
39 views

Unity3d : Animator canceling script

I create a sway script for my flashlight and attached it to the gameobject(flashlight). Now the problem is that when I enable the animator in the gameobject(flashlight) the sway doesnt work,but when ...
0
votes
0answers
16 views

Can I export animated models from Unity? Into what formats?

I have an animated 3D model from the Unity Asset Store that I would like an animator to touch up. But they need it in a format they can use (Maya or... something else). All I have been able to find so ...
0
votes
0answers
33 views

Why is this code not being responsive on mobile devices with unity? [closed]

So I am building a stupid simple game where all you need to do is click some balls on the screen and if I were to do this in java it would be no problem. How it works is when you click the screen it ...
0
votes
1answer
30 views

Bounds Queries for Simplex Noise Function

How do I construct a Bounds Query for 3D Simplex Noise? [This is more or less a follow-up to my last question] Simply put, for an arbitrary octree node (cube) in my volume (a section of Unity3d ...
0
votes
0answers
37 views

Unity's Multiplayer [closed]

Hi just a quick little introduction about myself I'm currently a student attending New England Institution of Technology for Video Game Development and Simulation Programming. Once I head back to ...
0
votes
0answers
50 views

Rotate object with accelerometer?

I'm making a game where you control a platform with balls falling ontop of 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 ...
0
votes
0answers
24 views

Unity Android Unable to convert classes into dex format AdMob

I'm a beginner Unity programmer (school-age), so I don't know that much about the system. On its own my app compiles fine, but when I implement the AdMob SDK (Google) 2.1, I have the following error ...
0
votes
0answers
53 views

Why I need to use Raycasting [closed]

I have come across pieces of code that can detect collision with other objects using OnTriggerEvent(Colider otherobject)that do not use raycasting, then why use Raycasting, please?
0
votes
1answer
45 views

Trajectory Projectile with Collision Detection

Right now I am trying to create projectile for cannon in which I want to detect collision also. At present I have simple working projectile after using two references Unity – How to display ...
7
votes
5answers
2k views

Is C# different in Unity?

Does Unity use a different version of C#, or is it all the same? It looks different from regular C# but there are some regular C# elements in there.
-1
votes
0answers
29 views

Create Server for Online Chat in Unity2D? [closed]

Im trying to make a simple online chat for Mobile Devices in Unity2D where users will join to these chat rooms and start the chat. I already made the chat and now I need to make my server. Any hit to ...
5
votes
1answer
158 views

Top-Down Octree Generation of Procedural Terrain

I'm trying to implement a voxel-based terrain generation system in Unity3d (C#). I have successfully implemented a uniform 3d grid system, and have extracted the isosurface out using Marching Cubes ...
0
votes
0answers
27 views

I have a bones misassignment and I need to know how to fix it [closed]

See here for the problem. Youtube-Video The legs are rotated over each other and the animation looks spastic. What is the misalignment's cause and how to fix it.
0
votes
2answers
139 views

How do I create a knockback-movement?

I am a web developer new to game development, and with limited math knowledge. I am writing a character movement controller in Unity. The game has an isometric Diablo-like camera. The character moves ...
-1
votes
0answers
43 views

Spawning objects at 3 Diffrent locations randomly [closed]

I'm new here and I have this simple practice code. I would like to spawn objects on three different locations of my boxes. One ball will spawn then after around 1 second, another one will spawn in ...
0
votes
1answer
22 views

Unity Rigidbody2D to act on certain gameobject only

I am creating a 2D game and the player object has a rigidbody2D attached to it. The game works fine until the player collides with a power up. The rigidbody physics get all messed up. So I was ...
0
votes
1answer
85 views

Camera controller in a 2d platformer

I'm basically bumming around using Unity's 2D creation tools, and I've managed to create a little platformer physics demo. There's a lot of work to be done, but I've got basic movement down, some ...