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 (2)

0
votes
1answer
12 views

Unity saving and loading of images in game

So I'm planning out this game for unity but I don't know how feasible it will be with all of the image loading and saving. I've worked with some other coding, and while I am in the process of ...
1
vote
0answers
21 views

UDP client code throwing a very nonspecific exception

so I'm writing a UDP server and client on a couple of the machines in my virtual reality environment to allow (in this case) data from the location in the environment to trigger some air nozzles. The ...
1
vote
1answer
297 views

Unity apple/google ID access?

After extensive Googleing I have not come up with a way to access Apple ID's or Google ID's from unity running in respective devices. Either ID's or something else unique to the accounts logged in. I ...
4
votes
1answer
164 views

AI using character controller makes unwanted change to it's y position

The enemy parent object does not have any colliders except for the character controller. It starts out with y = .57 and immediately jumps to y=1.6355 because of my call to CharacterController.Move(.) ...
-1
votes
0answers
18 views

WebCamTexture nullpointerexception [on hold]

I am trying to build an app which uses webcam in Unity. I am applying the webCamTexture on a raw image. I am trying to run this on webGL. I have done all the safety checks. I am getting my webcam'...
9
votes
2answers
689 views

How can I create light shafts like Journey's in Unity?

I'd like to create cartoon looking sun / light shafts that look very close (or identical) to the ones in very well known and loved games like Journey: and Ori: How can I accomplish this?
1
vote
1answer
72 views

How do I create the terrain mentioned in GPU Gems 3

So, i want to create this style of terrain: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch01.html However, as much as I scour the web trying to find ways to implement this inside Unity, I can'...
1
vote
3answers
653 views

Do editor errors affect device performance?

Do errors that come up in the Unity editor affect a game's performance on a device (on Android in particular)? I'm talking about errors that keep coming continuously during Update() such as ...
0
votes
1answer
77 views

Call a BlueprintImplementableEvent from c++ in unreal editor?

I created a custom actor: BPTest.h: #include "GameFramework/Actor.h" #include "BPTest.generated.h" UCLASS(Blueprintable, BlueprintType) class ABPTest : public AActor { GENERATED_BODY() public: ...
0
votes
2answers
126 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?
1
vote
0answers
32 views

Everyplay not working on Unity 4.6

I am using Everyplay in my game and when I run my game on mobile. It showing me as recording supported as false. I put the Client ID and client secret as well and checked on Android enabled. Can ...
1
vote
1answer
80 views

How Do I Play An Animation In Unity 5.3.4?

I am confused on how to play an animation with the new unity version because the flag "Automatically Play Animation" is gone. I cant have the animation connected to my GameObject because it plays ...
0
votes
2answers
75 views

Need some advice on how to decide where to implement my enemy behaviours

I'm in the middle of writing a platformer game in Unity using C#. I have my character, if he presses the kick button his state switches to kicking. During this "kicking" state the character doesn't ...
1
vote
3answers
107 views

I want to delay 3 sec to load next level after the collision in C#

I need to delay the load new level by a few second. Please help.This is the script I need to use: void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Enemy") { ...
1
vote
1answer
327 views

Fb.Feed dialog closes before saving

I'm having trouble with the Facebook UnitySDK when I use the FB.Feed() method for posting on user's timeline. The share dialog closes before the post is completed, Right after i press the "Post" ...
1
vote
1answer
39 views

How do you play more than one animation at a time in unity

I am trying to have 2 animations on one GameObject and i want them to play at the same time. I have been looking all over and messing around with the animator controller but i cant get it working.
1
vote
1answer
62 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 ...
1
vote
1answer
67 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
1answer
48 views

Access to varibles in other attached gameobject script is ambiguous

I'm trying to create reusable scripts that I can drop on my GameObjects. I am currently trying to figure out how to build a projectile script. Ideally, I want to be able drop this scrip on an enemy, ...
2
votes
1answer
236 views

How to Reciprocally draw on a 3D mesh and 2D UI Image in Unity?

My question is a bit involved so I'm going to split it into parts and attach a picture. 1) In Unity I'd like to be able to draw a line on a 3D worldspace mesh with the mouse. 2) As I'm drawing on ...
2
votes
1answer
24 views

Box Collider center relative to GameObject

I'm trying to get the distance from the BoxCollider center of a gameobject to the bottom of that same BoxCollider. Note that the center of the collider is slighty modified. So far, I have: float ...
2
votes
1answer
384 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 ...
2
votes
1answer
131 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 ...
1
vote
1answer
31 views

How to set the position of objects in pixels on the scene editor

I created a camera of the size of 480x854 as the project is meant for Android but whenever I try to position objects on the scene editor, their positions dont seem to be in pixels. It is like -10 y on ...
1
vote
1answer
52 views

Tire mesh rotates faster than wheelcollider in Unity

I have a car in Unity. Scripts are C#. I have noticed that my tire meshes' rotation is faster than whellcollider rotation. I am using this code for wheel rotation flWheel.localEulerAngles = new ...
1
vote
1answer
41 views

Zoom camera on player

I am developing a simple side scrolling game. I want to target and zoom camera on player when he dies. But it rotates the screen, and I want to prevent it. I'm copying the snippet of code here : ...
1
vote
1answer
33 views

Interactive Controls (switches, knobs, buttons) in Unity

I'm working on a puzzle aspect of a game, and wanted to make a section where players relay information to one another, and have to input the correct values. At its most basic, its a few stored ...
1
vote
1answer
47 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 ...
0
votes
0answers
18 views

Unity With C# script : Class Data Type Passing Value From Class Data Twice Weird [on hold]

I got a simple Question and weird from passing value to data type class variable. The code below : Constructor : public item (string name, int ID, string desc, int harvestx, int time, int stdpricex,...
2
votes
1answer
45 views

How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)

I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
2
votes
1answer
345 views

Questions about scaling in a 2d game in unity

Okay, so: I am making an android game. I want everything to scale to the size of the screen I'm using. Further, my static background needs to scale (as well as every other object), but if the aspect ...
0
votes
2answers
63 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 ...
2
votes
1answer
107 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 ...
1
vote
2answers
51 views

How to slow down this rotation

My goal here is simple. I am making a top down shooter kind of game, and I want the player to simply rotate in one axis, towards where the mouse is on the screen. I got it working, but it rotates so ...
1
vote
0answers
21 views

Unity Facebook “An access token is required to request this resource.”

I have installed Facebook SDK 7.6 for Unity 5.3. It is fine with login and logout stuff things but I am having a problem when it comes to use FB.API. I want to be able to fetch players' profile ...
1
vote
1answer
78 views

Unity syntax highlighting with VSCode

I'm using VSCode, not VisualStudio for Unity scripting. VSCode has syntax highlighting for C#, which works fine, but all the Unity related stuff like Vector3 doesn't get any highlights. I know, that ...
1
vote
1answer
95 views

What's wrong with my food generating code?

This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
1answer
75 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 ...
2
votes
2answers
1k views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
0
votes
1answer
42 views

Did they remove Sprite sorting layers from Unity?

I can't figure out how to set it. I thought it was a setting on the sprite renderer but it doesn't seem to be there? Google isn't turning up any results.
1
vote
1answer
69 views

How should my creatures see the world?

This may not be the best forum for this question, but I know a lot of you have dabbled in the field of general AI for games so here it is. I'm doing the cliche population evolution of creatures in a ...
0
votes
0answers
20 views

Unity With C# Script : Class Data Type Variable Array Issue Replaced [on hold]

I got a simple question to ask. Just Check below code and the question is in the end at the result of code. I hope you guys can help me.. file inventory.cs using UnityEngine; using System....
1
vote
0answers
20 views

FBX animation works in 3DSMax but not with Assimp

I have an FBX file that represent a plane with an animation of the gear opening. In my editor 3DSMax, the file and animation seem good, but when I use Open 3D Model , to see what the file will look ...
1
vote
1answer
19 views

Raycast will not hit generated box colliders at initialization

In my map class I have an algorithm that is generating and merging box colliders together. These belong to the layer "Ground". After that, in some places on my map I'm generating some new cubes on-...
-1
votes
2answers
38 views

AddComponent with string in unity5

At runtime I want to copy one Gameobject component to another gameobject. In my case I have one camera where multiple scripts are added with values settings. the same components i want to add into my ...
2
votes
3answers
1k views

Camera.WorldToScreenPoint not working with perspective

transform.position = Camera.main.WorldToScreenPoint( new Vector3( origin.position.x, origin.position.y, origin.position.z ) ); I have this code on a Unity 4.6 UI object. The origin is some transform ...
3
votes
1answer
230 views

Problems with Raycasting Requirements

Im working on a script which kinda works like an Enemy AI. Its kinda like a detection system with requirements that are required to be met. This is a recent question i asked using my code Raycast ...
1
vote
0answers
16 views

Getting error failed to repackage resource

i have error "failed to repackage resource" when I build my APK. I want to integrate Google Play Services in my Unity app. How can I fix this?
1
vote
1answer
109 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
vote
1answer
25 views

Stuck on walls or sliding on top dilemma

I'm making a 2.5D platformer game. I earlier had problem with my character getting stuck on walls when holding the forward button. I solved this problem by adding a physics material with zero friction ...