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

Sprite disappears after adding a material to it

I have background which is FirsLayer, order in layer 0 and platform over it which is FirstLayer, order in layer 1. Once I add a material to the platform, the layer doesn't seem to change but it ...
1
vote
2answers
40 views

How is setting the size of the window done?

Maybe I missed something, but I've gone through 3 full unity video tutorials (roguelike, shooter, ball) and gone through the standalone scripting videos up on the unity site and I'm still confused on ...
0
votes
1answer
41 views

How do I upgrade my Unity 4.6 license to the Pro trial?

I've forgotten if I already used my Unity Pro trial. I get stuck in the upgrade process. How can I tell if I've used it already? I am following these steps to upgrade the license: Generating a ...
1
vote
1answer
129 views
+50

RPC events with client side interpolation

I've implemented client side interpolation, where a specified delay is put on each client. This allows them to interpolate between positions and rotations. Unfortunately, this means every thing else ...
0
votes
0answers
55 views

Colliding of 2 moving objects

I am making 2d Game with my own Physics (without using of Rigidbody - some kind of challenge for me). I have two objects which are moving, and their velocity vectors. I have some unmoving objects. ...
0
votes
1answer
57 views

Unity 5: Accessing a C# variable from Javascript

I've set up a SQLite database with Unity. Into this I would like to add the current CPU Utilisation. The SQLite scripts are in Javascript and the method for finding the CPU utilisation is in a C# ...
1
vote
0answers
41 views

Overriding all object inspectors in Unity

How can this be done? I want to add a single label to every component( including non-misbehavior ones ) in the inspector. I've tried: [CustomEditor( typeof( Object ) )] And: [CustomEditor( typeof( ...
1
vote
1answer
99 views

What would cause my script generated buttons and text to show in Unity and not on my phone?

I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
0
votes
0answers
33 views

Saving a c# script in a javascript variable(unityscript) [closed]

i am modifying the inventory system made by brackeys. https://www.assetstore.unity3d.com/en/#!/content/10384 Now i want to define a c# script into a variable inside the character.js file. It looks ...
1
vote
2answers
80 views

Accessing a newly Instantiated Object

I currently am creating a script that allows the player character to attack by shooting orbs at foes. I have the current code to do that (not final code, for testing purposes): ...
2
votes
1answer
48 views

Does the order in which RPCs are called match the order they are invoked locally?

For example: void A() { Debug.Log( "A was called." ); } void B() { Debug.Log( "B was called." ); } void C() { NetworkView view = GetComponent<NetworkView>(); if( view != null ) ...
0
votes
1answer
28 views

unity how to keep prefabs updated

I have a number of prefabs in unity and I regulary update them, is there an easy way make sure unity updates these prefabs so that I don't have to update 20+ identical objects in identical ways acros ...
0
votes
1answer
75 views

Unity how to change material properties at runtime

I'm working on a unity game where I want to change the color of a material from within a script. The material applies to a line renderer. I currently have the following script: using UnityEngine; ...
1
vote
0answers
27 views

On the State of Unity3D with regard to Linux [closed]

I'm not particularly new to coding or to Linux, but I am new to game development as a hobby. After some reading, listening, and watching, I have found that Unity is by far the best option as a game ...
0
votes
1answer
53 views

2d Vs 3d custom shaders

I am about to start teaching myself how to write custom shaders by following some online tutorials and resources, but I had some concerns regarding them. After analyzing the requirements needed for a ...
0
votes
3answers
97 views

“Hold to jump higher” suddenly outputs a much higher jump

I'm programming my first game in Unity and I'd like to make a very controllable jump. The idea is to apply an upward force while the player is still pressing the jump button, and then after some time ...
0
votes
0answers
14 views

Scale Gameobject with defined size in pixels

I'm still new with Unity (5.0.0f4 Personal). I'm working on a simple memory game, three levels with different number of cards to find pairs. I want my game to display cards on different screen sizes ...
0
votes
1answer
32 views

Hierarchical “Select GameObject” Dialog or names with prefixes?

I am attempting to connect a series of teleporters with entrances inside a single scene. Once the player touches a teleporter he is moved to another place. I am doing this by simply connecting two ...
0
votes
0answers
23 views

Unity - UI Mobile - Script Generated buttons/text not seen?

I'm trying to generate some buttons and text dynamically with Unity 5.0 All of my code seems proper. It looks great when I play it in the editor. Everything is generated and placed and sized as I want ...
0
votes
0answers
19 views

Rich Text on InputField breaks Content Size Fitter functionality. Need some help

I'm currently using the input field as a way to make normal(ish) text in Unity. Refer to this question for more detail: How do I go about making a text box that allows for highlight-able and copyable ...
1
vote
0answers
18 views

How do I manually submit a new UI InputField in code?

I need some conditions for submitting the text inside of an Inputfield, however I cannot find a way to do this via code. I was expecting something simple like with WPF or WinForms, but I cannot find ...
1
vote
1answer
28 views

player does not collide with walls unity 5

I just started a new proyect with a personalize first person controller, like arrow move style, it worked, but when I tryed to collide it with walls it did not happen, I tryed adding a capsule, then ...
1
vote
1answer
33 views

How do I go about making a text box that allows for highlight-able and copyable text in the new UI?

I'm trying to make a simple chat system for our games lobby, however I am having issues making a text box that allows for text-highlighting. The Text component does not have interactible text, and the ...
1
vote
1answer
67 views

Can I release the source code of a game created with the personal edition of Unity?

Does the license of Unity Personal allow the publishing of the game's source code? We want to develop a game on a hackathon and publish the code thereafter. Is this possible?
0
votes
1answer
48 views

Generate platforms and move them with same speed

I'm building an infinite runner and have to generate pillars on which the player jumps. There's a minimum and maximum value for how much gap can exist between two pillars. In addition to this, i want ...
2
votes
1answer
24 views

How to check if a test ad is ready

I was going through UnityAds for Unity3D, and came across this setting: AD TEST MODE Force all So as I understood it states that I will be able to see real ads, in test mode, without ...
0
votes
0answers
14 views

Entity interpolation with a Unity listen server

How can this be done? I've implemented client side interpolation but I'm at a loss on how to implement it on a listen server. In order for the listen server player to see the same thing as the ...
0
votes
1answer
71 views

What are the legal issues when using free Unity Assets on a commercial game?

In the unity asset store one can find tons of thousands of assets, a lot of them being distributed for free. When using a free Unity Asset is it implied that you can do anything with it(commercial ...
0
votes
0answers
11 views

Applying Image Effect to specific texture uploaded and not to both texture and background

Hi I was following this script and shader example for brightness, contrast and saturation. I was able to follow along by attaching the C# script to the main camera and the shader to the script object. ...
0
votes
0answers
46 views

Unity3d 5 - default assets RollerBall+MultipurposeCameraRig rotation/tilt problems

I started a new Unity3d 3D project. I imported the Player, Camera and Prototyping assets. I placed a FloorPrototype64x01x64 and scaled it *2 on all axis. I reset it to 0,0,0 position and rotation. I ...
0
votes
1answer
48 views

How to generate objects at specific intervals and make them move with same speed?

I'm creating an infinite runner where character has to jump on randomly generated pillars. The pillars are positioned with a gap between each of them. The gaps are dmin and dmax. In addition to this, ...
0
votes
1answer
26 views

Unity 2d - Destroying foreign object from script + seek explanation about destroying objects

I have simple emmiter which sending enemies toward player in center of screen. Player can shoot missile (also emmiter). I want to destroy enemy AND missile in same time. Here is my code attached to ...
1
vote
1answer
134 views

How do I Rigidbody.AddForce(Vector3) in Unreal Engine?

I am coming from the Unity Engine, and trying to get my feet wet with Unreal Engine 4. I want to add a one-time force to an object. To accomplish this in Unity 5, I would use: void Start(){ ...
0
votes
1answer
29 views

Unity3d Colliders not working on my characters [closed]

I have create 2 characters in maya and imported them in Unity3d. I am able to move and animate them in unity but the characters are not colliding with each others. I have tried all major colliders ...
0
votes
0answers
16 views

vuforia unity how to detect that we have “ lost track of” an object

I'm working on a vuforia project and would like to be aware when vuforia can no longer detect the object in unity. Is there an easy way to write a script that is executed opon loosing track of an ...
0
votes
0answers
39 views

Unity changing texture of RawImage from code

I have a UI element, RawImage, which I would like to change the texture of based on which random number between 1 and 6 is generated. I want to change the picture of the dice, but I don't know how ...
0
votes
5answers
159 views

Coroutine to move to position passing the movement speed?

I'm using this coroutine to move my player to a new position. The problem is that it takes the duration as an argument instead of the speed of the object. Which makes it hard for me to make sure the ...
0
votes
0answers
37 views

Need help solving an acute-triangle to find the distance to the outside of my object

I recently asked a question here: How would I check the range against the entirety of an enemy object, and not just it's transform.position? That was accurately answered, and works perfectly ...
0
votes
1answer
92 views

How to move an 2D character(with animation) to mouse click position in C#?

i am going to develop a simple game called waste collection.In which if i click on a waste the character needs to walk to certain waste and collect it. Startingly the character is in the middle ...
0
votes
2answers
42 views

Is it possible to load local html pages into unity?

Is it possible to open a HTML page inside UNITY, with the page functioning normally?
0
votes
1answer
27 views

How do I get GL.IssueRenderEvent to work on iOS with Unity 5?

I'm trying to get GL.IssuePluginEvent to work, according to this: http://docs.unity3d.com/Manual/NativePluginInterface.html I have a plugin made with this code: extern "C" { void ...
2
votes
1answer
60 views

How to divide sprite sheet, but keeping the in same png?

first post here, but couldn't find an exact answer in your database, so guess I'll have to ask. I want to know how it is possible to create a ".META" file for a .png so you can extract individual ...
6
votes
1answer
67 views

Custom Editor - keep default look but add more

What I would like to know is if there is a easy way using OnInspectorGUI, to replace the inspector with one that includes just one or two additional fields (so that it looks identical to the ...
0
votes
0answers
41 views

How to fix artifacts when using equirectangular 360 panorama photo on sphere

I have a equirectangular 360 panorama photo. I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and ...
0
votes
0answers
27 views

WebCamTexture.width and height returning 16,16 unless reinitialized

I am trying to store a picture from a camera with WebCamTexture. The function Savepicture(string path) uses a Texture2D to set pixels retrieved from the WebCamTexture class field, I end up getting a ...
0
votes
0answers
9 views

Android app not installing because of more files in streaming asset folder

I have created a game which contains some videos, I have put them in Streaming Assets folder. The main problem is if the number of videos increases more than 6, app will not install else it will ...
5
votes
2answers
127 views

interfacing WiiMote with Unity 5

I am looking for a guide on connecting WiiMote with Unity 5 as an Input device. I found this library here but I do not understand how to install it and what the prerequisites are for it to work.
0
votes
2answers
56 views

Touch through GameObject, best practice

in the game I am doing atm you have an area with monsters. There are two modes to damage monsters : tapping on them casting spells on the ground Tapping and damaging a monster works fine. The ...
1
vote
0answers
78 views

Mega-man 2 Camera help (Unity) [closed]

So I have tried several ways to fix a Mega-man 2 camera without actually figuring out a good way of doing it. So I would love if someone could give me some tips for I could solve this issue. The ...
0
votes
0answers
41 views

Trying to increase the size of a sprite when it touches a pellet in Unity with C#

This is my first game, and I'm trying to keep it simple, so just a simple platformer that works around the size of the player's character, and the character increases in size whenever they consume a ...