Tagged Questions
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
6 views
Unity 5: Third Person Control Based on Current Camera
I'm creating Third Person game with multiple switching cameras. I'm using the default Third Person Control asset provided with Unity, and it comes with a script that aligns the movement to the camera.
...
0
votes
0answers
6 views
unity3d drag & slide character movement example
I need to control main character in my labyrinth-style game by "touchpad" placed in the corner of screen.
The player can DRAG character (by finger placed on touchpad), which allows to move the ...
5
votes
1answer
189 views
Unity JS to C# conversion - Incomplete list of public variables in Inspector
I'm trying to convert a javascript file to a C# script for Unity, mostly because the rest of my workflow is in C#, and I'm much more comfortable with C#. In this case, it's an audio controller script....
0
votes
1answer
10 views
Cannot find Natural front 3D facial animation plugin in Window drop down
I am using Unity version 5.4.2 which is the latest, I tried to go through the tutorial video for creating 3D animations of 2D pictures but I am unable to find the icon of
-> Natural front 3D facial ...
0
votes
0answers
24 views
Predict object position
The intention of this code segment is to predict the location of an object based on it's forward velocity and angular velocity. However, the position is not show where it's supposed to be; first when ...
0
votes
0answers
9 views
Shader to see silhouette through alpha blended sprites
I want to achieve in Unity an effect like the one in these examples:
In my specific scenario there are a couple of requirements:
Sprites are using alpha blending, and sprites have transparent areas.
...
0
votes
1answer
7 views
Fragment shader coordinates: Displacing pixels and texCoord problems
I'm trying to create a shader that creates a displacement on an object, slicing horizontally the sprite.
These is an example of the atlas I'm using and the effect I'm trying to achieve:
I tried to ...
0
votes
0answers
18 views
Unity Photon: Laggy movement even with smooth script
I am trying to make a pong game that implements multiplayer and I have chosen photon unity networking for this.
I have a paddle prefab that gets instantiated and has a move script, a BoxCollider, a ...
1
vote
2answers
33 views
How to save a text file to relative Path
I'm creating an app that should be accessable from every platform (android, IOS, windows).
At this moment I'm saving a file that is set to a specific path.
c:\test\test.exe. Now I know that Android ...
0
votes
1answer
31 views
Smooth Lighting Falloff
So, I'm having some issues with lighting in my Unity game. I had implemented torches, which seem to be working fine, but I have a creature (gelatinous cube) that I've put spot lights facing to give ...
0
votes
0answers
11 views
Unknown rotation behaviour of gameObject while trying to rotate using LocalEulerAngles
I am new to game development , I am following a book Unity in action by Manning . This is the code snippet used to rotate a game object (from the book):
public RotationAxes axes = RotationAxes....
6
votes
1answer
62 views
Why does physics not behave consistently in Unity?
I'm making a game in which AI players throw a ball.
In the screenshot, you can see the arena which is separated by a net in the middle. Each side of the arena has 6 players belonging to one of 2 ...
0
votes
0answers
17 views
Unity2D: IAP not working on mobile phone
My Purchase script works fine in unity editor but when I build and test it out on my mobile phone it's not working as in it is not giving me the item I purchased. I have followed tutorials to the tea ...
-5
votes
0answers
34 views
Unity C# Help with the dictionary Function [on hold]
using UnityEngine;
using System.Collections;
public class Keyboard_Input : MonoBehaviour {
// Use this for initialization
void Start () {
directions = new Dictionary<KeyCode, ...
0
votes
1answer
28 views
Unity3d Rigidbodies overlap even at low speeds
I have an issue that I can't solve. There are many questions relating to similar issues and they come down to "change some settings" and "object is travelling too fast". My problem doesn't seem to ...
0
votes
0answers
7 views
Manual Audio Listener Read
Is there anyway to manually read an audio sample with the Audio Listener asynchronously to the normal unity workflow like you can do in Camera.Render()?
0
votes
0answers
33 views
Unity Physics 2D Raycaster does not work
The version of unity I'm using is 5.5.0a6. I have a script that intercepts OnPointerClick, OnPointerDown and OnPointerUp events. My camera has the forementioned componend attached to it and my scene ...
0
votes
1answer
48 views
Unity “static” references
I have been researching this for 2 days now and I cannot seem to find a proper response. I am trying to figure out a good way to store constant variables within my game.
Basically, does it make more ...
0
votes
1answer
45 views
Help with Unity3D/2D Proper Prefab Creation
I have been looking around for information regarding this process but I was unable to come across anything that would help me out. Basically, in a game where you may have many items or enemies or ...
0
votes
2answers
52 views
Problem with shooting
So what I am trying to achieve is have the player shoot toward the mouse positiion and I have that working but I want the player to have to charge their shot. So if the player just presses the button ...
0
votes
0answers
11 views
Shaders in Unity: Exposing Texture Offset and mapping UV to terrain
Copying from https://forum.unity3d.com/threads/exposing-texture-offset-and-mapping-uv-to-terrain.441128/
Hi all,
I'm a bit of a shader noob and have been struggling for a bit with exposing the ...
4
votes
3answers
72 views
Unity “Update” method with lots of objects with logic
In my game I'm working on in Unity, I want to have energy and machines (i.e ore processing machines, smelting (think Minecraft modded)), but I was thinking about performance. The player could have ...
0
votes
1answer
18 views
Unity3D 5.5b : C# WebGL open email client Win32 exception error
I want to send an email in a WebGL build using C#. My code is as below
try
{
Uri myUri = new Uri("mailto:[email protected]? Subject=Hello%20again&body=TEST");
System.Diagnostics....
0
votes
2answers
79 views
Best way to create a Chromadepth shader for unity?
I'm trying to create a chromadepth environment in unity3D. So the camera sees close objects colored as red, and then farthest objects as blue. And everything in between falls down the color spectrum (...
0
votes
0answers
16 views
Unity AndroidManifest.xml Not Saving?
I have the Intel System Analyzer software and I am attempting to analyze the GPU of my game, but I am getting this error (link will be in a comment since I can't post more than 2 links right here):
I ...
-4
votes
1answer
38 views
Explosion script. My object don't rotate
I have some problem. After explosion, my gameobject dont't rotate.
Instantiate(explosion, transform.position, Quaternion.identity);
GameObject changes its position, and the rotation remains old. ...
-2
votes
1answer
53 views
How to create image slider using unity
I have created one unity app with vuforia plugin. App contains image target to view an object and play video. I need one more feature to create gallery view from image target. I want to create ...
0
votes
0answers
13 views
Itween easing problem
I create a path using ItweenPath that the object follows after it enters a trigger box. The problem is that I have my game object moving, and when the game object enters the triggerbox, it stops ...
0
votes
1answer
35 views
Where does Unity save Inspector properties for objects in a scene?
If I add a collection of objects to my scene and configure Inspector properties on those objects (like name, layer, tag, transform parameters, attached Components and their parameters), where does the ...
1
vote
1answer
46 views
Unity 5 - How to change Input Field 'Content Type' at runtime to toggle between asterisks and letters?
I have a password box set up in my project with the content type set to 'Password', so it shows asterisks when the user types in the box. However I would like a toggle switch so the user can click to ...
1
vote
0answers
24 views
Still players keep moving on the clients
With UNET, despite Interpolation is set to None in the NetworkTransform, I've noticed that still players keep moving on the clients, very slowly, one pixel at a time.
Their position on the server is ...
1
vote
2answers
66 views
Unity / Rotate a point around an arbitrary axis and anchor
I'm trying to find out the point which is already rotated. To solve this I did a Rotation, save the position, set the previous position and return my position, like this:
Vector3 ...
0
votes
0answers
26 views
Best practices for indoor lighting for Archviz applications in Unity3D 5
I'm trying to develope an archviz application for a building and I'm not an expert at Unity but i managed to learn and build functionalty of scenes.
My main problem is enlightening rooms that cannot ...
0
votes
0answers
37 views
How to create a simple axle in Unity?
Having trouble creating a simple car in Unity. I've tried wheelcolliders, but they give me a lot more than I need, and I don't like how they feel and don't perform very well. I've tried hinge joints, ...
0
votes
0answers
33 views
unity 2d animation masking
im searching or a way to combine animations or mask a part of animation of 2d character for aiming and looking.
for 3d unity has some good tools to do that but couldn't find out how to do it on 2d. ...
0
votes
0answers
34 views
How do I make a class constructable with another instance of the same class? [closed]
This is for a game in Unity, so the restrictions on C# version apply, but it is not on a unity object so normal C# rules. I was wondering how to make a class construct from a version of itself?
For ...
1
vote
2answers
181 views
How do Inventories work?
I am trying to create a inventory screen / system for my game. And I don't know how it will work. I'm creating it in unity. I was thinking of making a database of all items and a database of items in ...
1
vote
0answers
78 views
+50
Lighting doesn't work properly in WebGL build only at one place
So I have a 2d game where a player walks around the level (top view) with a flashlight in front of him. Everything works fine in the editor, however whenever I build it for WebGL and test it in my ...
1
vote
3answers
74 views
Stopping player from spamming movement keys which causes glitches Unity C#
I wrote a script for the player movement in c#. Whenever the player presses A or D, it moves him/her to the left or right by 12 units and when the player presses W or S, it moves him/her up or down by ...
0
votes
0answers
31 views
Apparently Bizarre Behaviour of Instantiate() and if()
To begin, let me note that I have scoured this website for answers that may speak to my situation and have not found any that immediately satisfy my curiosity. In a very basic game, I have written a ...
0
votes
0answers
26 views
Unity AddForce Movement Issue
Trying to fine tune my player movement, currently move the player in x and z directions using AddRelativeForce so W key moves you forward the local direction not in global direction, works mostly ...
-4
votes
1answer
53 views
Detect Triple click
I need a triple click detection on my 2d game.
I have a Canvas with a fire button inside and I'm searching a way to trigger 3 different actions on the player's script when I press this button once, ...
0
votes
0answers
38 views
Who has learned 3D Unity article or video tutorial? Or provide some websites [closed]
Who has learned 3D Unity article or video tutorial?
Or provide some websites
0
votes
0answers
21 views
Get the layer player is standing upon
In Unity i have a 2d tile map, how can i know on which layer of my tilemap the player is standing? Keep in mind that at the moment i don't have separate gameObjects for each tile as this is a simple ...
-4
votes
1answer
25 views
Object reference not set to an instance of an object [closed]
Please help me
System.NullRefenceException I do not understand what it is , can not figure
0
votes
1answer
23 views
How to prevent Unity from triangulating faces of imported models?
I have an object that will be rendered with a wireframe shader. This means that line between vertices in a model would be drawn.
The problem is that Unity automatically triangulates all n-gons in my ...
0
votes
1answer
100 views
Can I always assume that fixed time step in Unity is reliable?
I was thinking about games on low end machines or phones where the CPU would be limited. If I were to move all of my game logic into FixedUpdate() can I assume that it will always be called with the ...
4
votes
2answers
294 views
Replicating Flight Mechanics of Star Wars Battlefront (2015)
I'm trying to replicate the flight mechanics from Star Wars Battlefront (2015) in Unity and I can't get my head around what exactly is going on.
Specifically, how do I get the camera to behave like ...
0
votes
2answers
53 views
Identify whether object is off screen or not
I have placed three game object in the scene.How to know whether the object is visible on the screen.Print a message if the object is not visible on the screen.
-1
votes
1answer
53 views
Smoothly moving an object sideways by a certain amount when a key is pressed Unity C#
I basically want to have the user press A once without holding it down, to smoothly move the player to the left. I would like to make the player move to the left by -12. So he would end up going from ...