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.
0
votes
0answers
14 views
Rotate arrow without using Unity3d physics engine
I have this code that simulates the movement of a projectile without using the unity physics engine
IEnumerator LaunchProjectile(int angle, float speed)
{
// Move projectile to the position of ...
0
votes
0answers
6 views
Package manager for Unity [on hold]
I am looking for a package manager for Unity.
I worked before with xCode and cocoa touch where I could easily add libraries with a single line inside the Podfile and then update the pods to import ...
0
votes
0answers
12 views
Unity and TFS Merging
I'm trying to come up with a good Unity dev collaboration solution for a company where TFS is used as main version control system. I've setup the Unity projects to create metadata and store all as ...
0
votes
0answers
16 views
[Unity 2D]Player movement not working against diagonal elements
I am building a game like The line Zen. Player is moving along a road and has to avoid hitting the edges.
Right now, i have planned it as follows:
On click , cast rays in 8 directions. For the ...
0
votes
1answer
11 views
Unity Physics Trouble with Platform Objects
Hi Game Development Community!
I'm new to designing in unity, and I'm having some issues with my player game object traveling through platform game objects. Several of my game objects (pink in ...
-1
votes
1answer
16 views
Before I change position I want to check if the gameobjects are collinding
For starters I'm new to Unity3d. So my question is when I click on an object I want to change its position but without collinding with the other objects and I need a function to check that. I already ...
-2
votes
0answers
36 views
Drag object vertically in unity 2d
I'm new to unity and I'm currently working on a game with unity 2d. I want to know how can I drag only vertically an object on touch. The camera is in mode perspective. I appreciate your help.
2
votes
1answer
81 views
Player takes too long to start walking
I'm new to Unity and after doing some tutorials and reading documentation from Unity, I've started a test project. The game is a 2.5D platformer and I wrote the PlayerController; it looks like this:
...
0
votes
0answers
32 views
Snap gameObject to grid tile
I'm making a 2D TD game and currently I have made using quill18 tutorials a simple building system. However I'm trying to have it snap on my tiles as I mouse over them.
This is my script applied to ...
2
votes
1answer
22 views
Unity 5 Standard Assets for Linux / Ubuntu
Unity recently has released Unity3D Editor for Linux machines. But in its website there is no support for Linux / Ubuntu. As of Unity 5 standard game assets have been removed from the editor itself ...
0
votes
0answers
21 views
Unity Skin Shader to GLSL
I was hoping that I could get some help converting a Unity Skin Shader to a more common GLSL readable format.
I found a skin shader that looks decent and would like to give it a try:
...
0
votes
1answer
17 views
Call function after Level loaded
I'm stuck in this situation:
I have a GameObject with a script, that persist trough Level loads.
Inside this script, when a condition is meet, i Load a Level, and also call a function. That function ...
-2
votes
1answer
33 views
How to manipulate unity camera in a C# script?
I am new to unity and i'm trying to move the camera to follow the player, but everything i tried won't work. Please explain what each step is and show code. I want to add to its position not use ...
1
vote
0answers
27 views
MonoDevelop won't start
I'm unable to open the MonoDevelop for script writing. I've done all the things mentioned here:
http://answers.unity3d.com/questions/574157/monodevelop-not-opening-in-unity-43.html
When I replace the ...
1
vote
0answers
38 views
Reverse Movie in Unity 5
guys! Is it possible to reverse video or apply a rewind in Unity 5? I searched in the web but could not find the solution.
0
votes
0answers
28 views
Goal keeper AI with animation
I'm working on football simulation game. I am trying to implement Goal keeper AI. I did calculated ball trajectory and intersect point. I wanted to Goal keeper to dive to the interaction point and ...
1
vote
1answer
37 views
How can I simulate a “Hot Swap” betwen Audio Clips?
I have a Unity project with 3 separate looping Audio Clips and a single Audio Source. Based on certain events, I swap between which of them are playing.
This works fine, but whenever I swap between ...
3
votes
1answer
29 views
Why doesn't the animtor animate in unity5?
I have a player consisting of 20 different body parts which I have animated into a walking cycle. When I play the animation in an 'animation' component it works as intended, but when I try to play it ...
-3
votes
0answers
35 views
Unity 2D Roguelike Tutorial Bug [on hold]
I've been learning to code and create games in Unity 5, with their video tutorials and while working on the Roguelike Tutorial I created a bug that I, for the life of me cannot fix. Here's what ...
0
votes
1answer
22 views
How to force Landscape Mode Unity3D Android Game?
I am developing a small side project on Unity that will ultimately be for Android but I cannot figure out how to force landscape on the device and when I have tried it out the game just goes all over ...
0
votes
1answer
30 views
How to manipulate unity objects in a C# script?
I am new to unity and i was wanting to know how i can change a objects position and angles and stuff like that in a c# script. I exported the object from blender as .3ds. The objects name is ...
0
votes
0answers
4 views
Unity PhotonView - Ownership problems when synching objects
Im creating a billard game where one white ball will be controlled by two online players.
I have set my object photonview to ownership takeover:
https://www.dropbox.com/s/kq79lfh4clerx7q/no.jpg?dl=0
...
1
vote
2answers
43 views
Is it possible to have FixedUpdate execute once every n frames?
I'm currently building a small game, and I've created this simple character controller using FixedUpdate, which executes every frame.
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
...
1
vote
2answers
24 views
Unity LoadLevelAdditive and baked light scene settings
I am a programmer for a small game.
For our levels, I separated the UI from the level data, so one scene is a scene which contains only the UI, the other scene has all the gameobjects and models and ...
1
vote
2answers
317 views
Unity crashes when opening a project
Why does this happen?
I'm new to Unity development. I have installed Unity yesterday (2015-09-06). This is the error that I get:
0
votes
0answers
17 views
Objects with custom shaders cast grayscale shadows when lightmapped
Unity 5 seems to be able to calculate colored shadows from objects mapped with standart shader and legacy shaders.
What should I do to make my custom shader to cast colored shadows as well?
0
votes
1answer
23 views
A method to create and assign a name to a GameObject (Unity)
I'm trying to create a function that takes in a name of an object in the editor and assigns this accordingly as well as the name of a sprite, rigidbody, etc.
Basically what I have so far is-
...
1
vote
1answer
41 views
Change Material color programmatically
I'm writing a simple C# Script to change Materials color of a object.
public class Highlight : MonoBehaviour {
public bool Mouse_Over = false;
public Color Highlight_Color = Color.white;
...
0
votes
1answer
14 views
UNET start game with friend by finding their name, Android
There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
0
votes
3answers
32 views
Making a 2d sprite based game in Unity?
I'm looking at developing a 2D sprite based platformer. Usually I make games in Gamemaker, because I find it very easy to use. I have never used Unity before but have heard a lot of good things. So, ...
6
votes
2answers
763 views
Unity and lots of objects. Can this way of designing levels bring problems?
Ok, question.
I've been fiddling for Unity for a while and now trying to make a cohesive game.
Up until now I've found the quickest way to design levels for me is to create a block of wall/floor to ...
0
votes
0answers
19 views
Local Highscores list [on hold]
Am finding it really difficult to create a local Highscores List. Please can someone help me with a functional code. C#
-1
votes
1answer
33 views
0
votes
1answer
39 views
Quaternion.LookRotation() not rotating 360 degrees
In my scene I have two cubes one has a tag "Respawn" and another one has the following script attached:
`
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : ...
0
votes
0answers
14 views
Trying to grab an image file from Parse in Unity
So i've tried looking over the documentation and cant make heads or tails of it... so i'm hoping someone here can help:
so i've created a ParseFile with an image stored in a byte[]. I've saved this ...
2
votes
0answers
67 views
calculating torque from angular momentum considering inertia moment
so I am trying to determine exactly how much torque to apply to a 3d model to make it rotate at a particular rate.
I apply force from the location of each engine on the craft so if one breaks the ...
1
vote
1answer
24 views
Why does Unity not detect my camera attached via the inspector?
I want to use camera.ViewportToWorldPoint() to show the bottom center bounds of my screen. So, I created a script and added that component to my object that needs it.
using UnityEngine;
using ...
1
vote
1answer
33 views
Problem with grid generation in Unity 5.1
Using Unity 5.1 and was following a tutorial for generating a grid for a Minesweeper-style game. Link to the tutorial for reference: ...
18
votes
2answers
4k views
What happens if I make more than $100k with the free Unity license?
If an indie game developer makes more than $100,000 using the free version of Unity, what happens to the money that goes over $100k? How will Unity people come to know how much money they are making?
...
1
vote
1answer
33 views
Unity: Adjusting the camera so that the scene view and the game view look same
when I make any object I'm able to see that by other side in the game view. And this troubles me in adjusting the objects.
So can anyone help me to adjust the main camera in such a way that views of ...
1
vote
3answers
60 views
Why does a UI button that is child to a canvas not appear in game view?
I am trying to place a button onto a canvas background using C# script.
I want the button specific to the canvas (i.e., if I move the camera to look at another canvas, I do not want the button ...
-2
votes
1answer
80 views
How to make a stab function?
I've looked around everywhere, and I can't find an example script for a stab. What I have so far is a top down 2D scene, with a player at the bottom (static). I would like to have the sword/tongue to ...
0
votes
1answer
34 views
How do I ensure consistent behaviour when using Unity's Collider2Ds for triggers and collisions?
I am experiencing inconsistent behavior using Unity's 2D Physics engine and their Collider2Ds to detect collisions and triggers on my projectiles. I will classify it into two problems. The first is ...
1
vote
3answers
47 views
Filling background with tile image
I'm learning Unity and developing a 2D game for learning. It's really similar to RimWorld and Prison Architect. I have a grass tile image (32x32 pixels) I want to fill background with this image.
...
2
votes
1answer
68 views
Wander steering behaviour in 3D
I'm trying to implement the Wander Steering Behaviour but getting strange result (see .gif). What am i doing wrong? I want to move a sphere in a random direction.
I read this article Understanding ...
-4
votes
0answers
33 views
A free “maker” engine to create and export commercial Android games? [closed]
I need a free "maker-like" engine that can easily export Android games. I mean ready-to-store and with no costs.
Unity and GM Studio Android exporting versions are paid, right? So, whats the best ...
0
votes
0answers
14 views
Unity Photon Networking - Cant understand OnPhotonSerializeView
in all tutorials I see that an object sends data over the network and receives the data
for sync in the same method:
Code (csharp):
void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo ...
3
votes
1answer
113 views
Create a normal map using a script? Unity
I don't have a software that can create normal maps from an image so I usually make a grayscale image and then let unity make the normal map from that image. But I can't save the image to use for ...
-4
votes
0answers
29 views
How do I change the control from PC to Mobile? [closed]
I have my character control script working on the pc.
How do I change this script to work for a mobile port?
using UnityEngine;
using System.Collections;
public class Player: MonoBehaviour {
...