Refers to 5-th edition of Unity Engine, released in March 2015, featuring their new Standard Shader. It uses PhysX 3.3 and has many other upgrades over it's predecessor.
8
votes
2answers
895 views
How to make my 2D character stand normally on slope?
I've got this character in Unity3D (2D Mode)...
in a a slope which looks like this,
But I want the character to stand along the red line..Like below
How can I make it in Unity3d?
I've got this ...
6
votes
2answers
759 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 ...
4
votes
3answers
521 views
Unity 5 disabling a script
I'm using Unity 5 and want to disable a script called Unit based on whether the instance is a client or a server. I have tried using:
GetComponent("Unit").enabled = false;
However I get hit with ...
4
votes
3answers
330 views
How can one add a level to an already published ios/android unity3D game on a daily basis?
How can one add a level to an already published iOS/Android Unity3D game on a daily/weekly basis?
I know this probably isn't feasible but it won't harm if I just made sure of it. Our game requires to ...
4
votes
3answers
167 views
How to clip game objects to a rectangular area
I'm trying to figure out how to do this but am coming up short. I'm making a slot machine in unity 2d and would like to clip the tile prefabs when they leave a given rectangular area.
I can't seem to ...
3
votes
1answer
83 views
Why does Unity increase the size of image when I use the image in Unity?
I try to make a game in Unity 2d. But when I drop the image in Unity the image size increases 3 or 4 times. Can I fix that or is this normal?
3
votes
2answers
121 views
How to make sure Sun Shafts are emitted only from background elements?
Currently I have a game scene entirely made of standard sprites using the default material.
I use the Unity standard effect named Sun Shafts.
I have tried many combinations of shaders and other ...
2
votes
3answers
258 views
How do I make an endless road in Unity?
Basically I created 2 quads side by side and I added a road texture. I used transform.translate so that the road moves, but I am trying to make the road endless by making the 2 quads reposition ...
2
votes
1answer
37 views
Make a plane to display material from both sides
I know there is a setting in Cry Engine, which allows you to be able to read materials of the plane from both sides, so I am wondering if there is such a setting in Unity5.
Thanks in advance
2
votes
1answer
16 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 ...
2
votes
1answer
155 views
RPC's in Legacy Unity, what to use in Unity 5.1?
I have created a small experiment in 5.1, a server has an AI character pathfinding around a map over a grid, so its a straight line node to node before it reaches the end.
I would like for the ...
2
votes
1answer
82 views
Unity: How to make script work with duplicated objects?
I have an object in my game that, when clicked, causes the player to move toward it. It does this by sending its position to the player's SetTarget function. The player's Move function then heads ...
2
votes
1answer
21 views
Animations won't transfer states until entire animation is completed
I am following the survival shooter tutorial and am using Unity 5.
I just completed this video (linked) and I tested played it to see my animations worked but it seems like it will only transition ...
2
votes
0answers
24 views
Why does interactive cloth not appear in game view in unity5 Pro?
I used interactive cloth fir flags in unity5 Pro version and it appears in scene view but does not appear in game view while playing. What can I do for that please somebody help me out?
2
votes
0answers
18 views
MoCap data files applied to avatars using Mecanim
I am applying some animations (e.g. running) from this free MoCap package that I got off the Unity Assets Store, and as far as I can see from running the animation previews, they seem fine (i.e. ...
2
votes
0answers
83 views
Moving a character based on a list of Vector 3's
I have a client server scenario. On the server there is an AI character who chooses a random point on the map and pathfinds to it, when at that point it chooses a new point and pathfinds again etc. ...
2
votes
2answers
147 views
How to script enable VR in Unity 5.1
Unity 5.1 has integrated VR, its in the Build Player Settings as a checkbox. I want a startup scene that is not VR, then when the user starts it enables the VR camera. Can I do that?
1
vote
2answers
316 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:
1
vote
1answer
30 views
How to lerp all members of array in Unity 5?
I've an array of gameobjects called cards and I have this code to run when clicking a button
public void mover()
{
for (int x = 0; x < cards.Lengh; x++)
{
cards[x].transform.position = ...
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
2answers
40 views
Proper way to handle Movement/Animation/AI functions of an AI character in Unity3D
My team is currently building a 2D game in Unity and we've run into some workflow/script organization blockades for many of our game's characters.
For example, we're not sure what the standard method ...
1
vote
1answer
79 views
Unity5 imported models show no texture
I've got a problem with Unity materials.
I'm a beginner- so I used Wings3d for creating 3d models.
But there's a little Problem.
Both objects on the picture below have the same material(a Standart ...
1
vote
1answer
67 views
How can I accurately simulate orbits in Unity?
I would like to create a space simulation with realistic gravity.
This means planets in 3d space which act as central gravity sources and multiple objects which are attracted by those planets gravity ...
1
vote
2answers
42 views
How can I set up a delay before the rotation happens?
How can I set up a delay before the rotation happens? I tried StartCoroutine, yield WaitForSeconds .. But I failed.
1
vote
1answer
42 views
How to Slice the external Spritesheet programmatically by using C# in Unity
I have a sprite sheet like this:
I am using Unity Engine to develope my game. I would like to load this external spritesheet outside and slice it as Grid type programmatically instead of using ...
1
vote
1answer
21 views
How to revert to MonoDevelop's old “ctrl-tab” behavior? [closed]
I believe MonoDevelop (bundled with Unity3D) has changed its ctrl-tab and ctrl-shift-tab behavior and I would like to get back to the old behavior, as the new way frustrates my workflow.
Ctrl-tab ...
1
vote
3answers
29 views
Objects stick together on Collision
I have a ball which has CircleCollider2D attached to it. It is also rigidbody. When it lands on a platform, it jumps . The platform is static, with Edge Collider attached. It also has a platform ...
1
vote
1answer
22 views
Unity 5.x - Editor only constructor/initilization event
I have three scripts:
Level - Represents a Tile Based level.
LevelEditor - Custom Editor for Level.
Tile - A non monobehaviour class for storing tile information.
Level contains an array of Tiles ...
1
vote
2answers
117 views
Saving/Loading PlayerPrefs only works in the editor
I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
1
vote
1answer
45 views
Why is everything lit by default?
I am following the unity tutorial here and when i drag my environment into the Hierarchy everything i already lit up on my Game view, i noticed this was also the case in the Space Shooter tutorial ...
1
vote
1answer
363 views
Unity 5 Client RPC call: Failed to Invoke ClientRpc
I have a Unity 5 client and server running. On the server a path is generated and I want the client to receive the position of each target node on this path. Following the Client RPC calls section ...
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.
1
vote
0answers
23 views
The animation state could not be played because it couldn't be found!
If I try to use animation.Play() or have Play automatically ticked in the inspector on the animtion object, it gives me the follwing error:
The animation state could not be played because it couldn't ...
1
vote
3answers
106 views
How to build a spaceship with interior in unity?
I've begun to study a unity engine in one purpose: I have a great multi player game idea!
The main essence: In space there are two (or even more) huge spaceships with crew consisted of players (all ...
1
vote
0answers
16 views
How to change colors where two boxcollider2d objects intersect (Unity 5 2D)
I'm creating a 2D game in Unity that relies on combining colors. For instance, if the yellow sprite in in a position, and the player slides a magenta sprite partly over it, the area where the two ...
1
vote
1answer
44 views
Unity5 - A Shader to blur far plane edges?
I need some help. In my Unity5 game I'm using two cameras, First camera renders the actual terrain and game objects (wich has a far plane of a 1000 units) and the Second camera renders a 3d skybox of ...
1
vote
0answers
133 views
Do realtime reflection probes and precomputed GI work on iOS in Unity 5?
Seems they don't from my tests but just to double check.
My setup is made up of a few objects marked as static, all sharing a standard shader material with some emissive color, GI set only to ...
1
vote
0answers
61 views
Hinge joint annoying wheels rotation in Unity
I try to made a little skate game prototype in Unity 5 and I just encountered an issue. I added a hinge joint between the board and each of the wheels couples (front and behind) so the board can move ...
1
vote
0answers
48 views
Is there a way to build asset bundle that exclude texture2d from an image?
In unity 4.x, I can archive this because I can select my resource type directly as Sprite variable before putting it into the bundle via BuildAssetBundle. However, in Unity 5.x, I need to put the name ...
0
votes
2answers
43 views
Stitching terrain tiles made in Blender at runtime
Background
I'm making several individual terrain tiles inside of blender for use within a Unity 3D 5 game. Each tile is square and is made to represent a segment of a world. In game the tiles are ...
0
votes
2answers
67 views
Player in Spaceship
I want to realize space game on Unity3d engine. There are some huge spaceships in the void. So, I want players flying in space in weightlessness, but when they go inside any spaceship, they will be ...
0
votes
1answer
24 views
Unity2D Sprite gone / not visible when flipped using Vector3.x
I have create game object with code
using UnityEngine;
using System.Collections;
public class CharacterBehaviour : MonoBehaviour {
private bool facingRight = true;
private float moveDirection = 0;
...
0
votes
1answer
30 views
I cant Attach C# Script to my Player? [closed]
Every time I try to attach my C# Script to my Player, it gives me this error message:
"Can't add script component 'Player' because the script class cannot be found. Make sure that there are no ...
0
votes
1answer
102 views
Where are the files UnityEngine.dll and UnityEditor.dll located on a Windows filesystem?
Visual Studio can't find the UnityX.dll files after I copied my assets folder from one computer to another. Where can I find these .DLLs?
UnityEditor.dll
UnityEditor.iOS.Extensions.XCode.dll
...
0
votes
2answers
95 views
WaitforSeconds() not working as it should
I searched for using WaitforSeconds and used as it was mentioned(using a return type of IEnumeration and using coroutines instead of update). but it did not work. Initially it showed Waitfor Seconds ...
0
votes
1answer
37 views
Isn't OnGUI and Event cyclical?
Here's what I don't understand about Events:
the documentation says that Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events. For each event ...
0
votes
1answer
51 views
Can't move character at all in unity basic platformer guide
so, I followed below tutorial.
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-a-basic-platformer-game
Going well until 18:50 (video time in tutorial), when the ...
0
votes
2answers
40 views
get back unity default interface
i installed unity recently .and interface of unity looks like that [see the image] in all tutorials i see on the internet.
but this is my one(I'm not in the game tab I'm in the scene tab)it's look ...
0
votes
1answer
11 views
I can't import player relative controls in unity
I'm developing a mobile game in Unity 5 but I can't find player relative control asset anywhere.Can you help me with this?
0
votes
1answer
37 views
Unity5 How to create a floor
This may be a may be a very basic question but I have a 32x32 tile of grass for a 2D platformer I'm making. Is there an easy way to duplicate the tiles and lay them out? or will I have to copy and ...