Questions tagged [unity]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

How to check metadata stored in FBX files?

Is there a way to check and edit metadata information stored in FBX files? I'm using 3ds Max's fbx exporter. Can this be done with it or is there any other tool for that? For example: adding name, ...
6
votes
2answers
4k views

Should I code game logic separately from game engine scripts

I'm developing a game in Unity3d, economic strategy. I wonder if I should code logic inside unity scripts, or write it as an external module/library? By game logic I mean game model, which describe ...
2
votes
1answer
5k views

Creating a light that follows the player

How do I create a point light that follows the player character when they walk around? The light should shine on the player and not on a fixed point.
7
votes
2answers
2k views

How does Unity's multiplayer support stack up compared to other engines?

I am currently starting development on a FPS game. I haven't decided on a developement tool. I am really drawn to Unity 3D but not sure how good the software is compared to others (the game has to ...
1
vote
1answer
1k views

VFX for Unity sci-fi game

Can someone please give me any tips/ guides on how to create hologram, disintegration & freeze effects in Unity game? I have a sci-fi shooter game in mind, and I would like to incorporate the ...
1
vote
1answer
6k views

Rotate a 3D object in Unity3D on button click

There is a 3D character in my application developed using Unity3D. Now I want to rotate this 3D character when the user press the rotation button. I tried several ways, but didn't work. How can I ...
3
votes
1answer
1k views

How to smoothly change the target of smooth follow without camera glitch?

I am trying to change the target of the smooth follow at runtime, but there is a glitch in the camera since the targets are different sizes. I tried using lerp and smooth damp both gave the same ...
2
votes
0answers
865 views

Access Android Camera.Parameters from Unity

I would like to access the android defined class Camera.Parameters.getHorizontalViewAngle() from a Unity3D c# script but my java skills are limited. Can anybody ...
2
votes
1answer
1k views

One to one aiming in 2D platformer

Hello all I have been having an issue with a 2D platformer I'm working on in Unity. It has an aiming style similar to Shadow Complex where the aiming will rotate around the character in direction to ...
-1
votes
2answers
2k views

Move a player in the opposite direction they are looking

I'm looking to move the player in the opposite direction they are facing with a specified force. Rather than try to explain that better I created an image showing what I mean, I've tried reversing ...
5
votes
2answers
4k views

How to draw texture to screen in Unity?

I'm looking for a way to draw textures to screen in Unity in a similar fashion to XNA's SpriteBatch.Draw method. Ideally, I'd like to write a few helper methods to ...
1
vote
0answers
1k views

is there a way to check if an animatorcontroller has a parameter?

With mecanim, if you try to set a parameter that doesn't exist, it logs a warning. It doesn't throw an exception or return null or anything useful like that. So if I set a parameter very often that ...
1
vote
3answers
2k views

How to move around a player in a curved tunnel?

In a scenario where the player moves freely along the walls of a tunnel (like this), what is the best way to move the player along the walls of the tunnel? I'm using Unity3d game engine. I've tried ...
2
votes
1answer
1k views

What happens when a texture is too large for a device

The question is two fold: What happens on a device when a texture is too large for it to handle? Will it crash or simply downsize it? In Unity if I use texture atlases of size 4k and then set ...
-1
votes
1answer
184 views

Cloud Computing Middleware to Control for Add/Kill VMs + Sessions

I'm working with some people who have a prototype game in Unity and may need to scale it up to address a larger user base. The potential application has the following characteristics: Sessions are ...
3
votes
4answers
4k views

IOS OpenGl transparency performance issue

I have built a game in Unity that uses OpenGL ES 1.1 for IOS. I have a nice constant frame rate of 30 until i place a semi transparent texture over the top on my entire scene. I expect the drop in ...
2
votes
2answers
1k views

Day and Night mode according to user's real local time

How do I make it so the texture of my plane is a black sky when it's night according to player's local time (say from 10 PM to 5 AM it's going to be black, and from 6 AM to 9 AM it's going to be a ...
3
votes
2answers
8k views

C# Item system design approach, should I use abstract classes, interfaces or virutals?

I'm working on a Resident Evil 1/2/3/0/Remake type of game. Currently I've done a big part of the inventory system (here's a link if you wanna see my inventory, pretty outdated, added a lot of ...
-3
votes
1answer
359 views

Optimization Question about Singleton [closed]

I am using Unity with c#. I have two objects and one needs to call a function from the other which is a Singleton. For this I have two solutions. But what's the best thing to do : - Call for : ...
1
vote
1answer
283 views

Getting mousemovement despite mouselock - unity

I have lockcursor so the cursor doesn't leave the screen, but now i have to rotate an object based on mouse movement (think garrys mod item rotation) but the mouse cursor is obviusly locked to the ...
1
vote
1answer
697 views

Unity3D filling visible camera area with objects

I'm developing an isometric tile-based game using Unity 3D. I'm using an orthographic camera looking down yaw:45° and pitch:45°. The game has an infinite world, which is loaded from a remote server. ...
3
votes
2answers
4k views

pathFinding performance in Unity3d

I am making Sniper game in unity 3d. In this game zombies will come randomly towards the sniper and sniper have to kill them. I am using RAIN(indie) for path finding. It works best when zombies are ...
2
votes
1answer
8k views

How to create HDR and bloom in Unity3D?

Unity3D's reference describes the HDR Bloom as: Using HDR allows for much more control in post processing. LDR bloom has an unfortunate side effect of blurring many areas of a scene even if ...
3
votes
2answers
4k views

Raycasting in Unity3D?

I have a game object on screen represented by a cube (but say it was a quad or something else all the same). How do I raycast to check intersections? Keeping in mind I may not be raycasting fora ...
2
votes
1answer
395 views

Component-based programming with child objects

I am presently working on a game in Unity3d and have come to a cross road regarding scripting for repetitive child objects. Should these child objects handle its own scripting for best practice? For ...
-2
votes
1answer
250 views

How to keep a GameObject from dropping?

I am applying the following script to first person object: ...
2
votes
1answer
842 views

Trouble with UV Mapping Blender => Unity 3

For some reason I am getting nasty grey edges around the edges of rendered 3D models that are not present in Blender. I seem to be able to solve the problem by reducing the size of the UV coordinates ...
5
votes
3answers
4k views

UDK or Unity Dynamic Runtime Mesh Boolean subtraction (or alternative) [closed]

I'm new to 3D game dev and was wondering if anyone could help me out. I'm planning to use UDK and would like to have deformable items in the world. So a projectile strikes a target, and a dent or ...
2
votes
2answers
9k views

How do you reference one game object from another?

I am trying to reference a game object that was created in the editor and added to the scene (not created dynamically). How can I reference this object in a script added to another gameobject? For ...
2
votes
1answer
836 views

3D movement on an authoritiative server?

I'm developing an MMORPG, using Unity for the client and "standard" C# 4.0 for the authoritative server. The server should check each player's movement and ensure that it does not collide with props ...
4
votes
1answer
6k views

What does Mecanim's “loop pose” parameter do?

What exactly does the loop pose parameter do? What's the difference between enabling or disabling it on animation clips?
1
vote
1answer
770 views

How to circle an uneven object with Camera at a fixed distance?

Unity3d. I am trying to move an object with Camera around a fixed terrain (Mountain), while staying an set distance from its edge. I have the camera set to lookAt the mountain, and I want to circle ...
-2
votes
2answers
484 views

No appropriate version of 'UnityEngine.Transform.RotateAround' for the argument list

Assets/CircularOrbit.js(11,26): BCE0023: No appropriate version of 'UnityEngine.Transform.RotateAround' for the argument list '(UnityEngine.Vector3, System.Type, float)' was found. Here is what I ...
2
votes
1answer
888 views

How do I get URL parameters from a Flash game (developed with Unity3D)?

I made a simple Flash game in C# using Unity3D. It interacts well with a web page: There is a textbox for the player to type their name and that name is used in-game. Now I want to pass the player's ...
0
votes
1answer
7k views

Issues loading in AudioSource at runtime using WWW class

I am having an issue with loading in an OGG audio file to my project. Basically I want to set my game up so that players can drop audio files into a folder called Playlist in the game directory then ...
3
votes
2answers
419 views

Is there a significant importance in what axis I chose in my top down 2.5D game?

I have read several posts stating what seems like a "standard" in how to chose your 2d axises in a 3d engine. It is often Y up on screen and X right on screen. However, in these examples I often see ...
2
votes
3answers
2k views

Let a time counter working when an app is closed?

Can we let a time counter working even if an app is closed? I would like to add a timer so that we have to wait XX seconds/minutes before a building is created in a game. I don't want to use an ...
3
votes
1answer
3k views

How to play character animation when using A* pathfinding

Hi I am trying to make racing game. In which I am using mecanim animation system to animate my character. Here are the conditions for the animation to play ...
1
vote
0answers
1k views

How to translate a direction on the screen to 3D space?

EDIT: Alright, I've figured out what's wrong. I'm calculating the direction vector properly with the below code: ...
0
votes
0answers
652 views

How to use Unity3D Social for OSX?

I can't seem to find any documentation using the Social APIs with OSX. I can successfully use the iOS Social Libraries, but when I translate it over to OSX, it doesn't do anything. Also please refrain ...
2
votes
1answer
6k views

Difference between Unity Pro licenses?

What is the difference between the various Unity Pro licenses? What does Android or iOS pro give me that Unity Pro doesn't? And what is the point of getting Unity Pro if I only care about mobile ...
1
vote
1answer
151 views

Mobu: Motion Files Naming Scheme for Unity

When exporting takes as several fbx files in Motionbuilder 2014 with File > Motion File Export..., the files are named like so: file_Take1.fbx file_Take2.fbx file_Take3.fbx In order for ...
3
votes
0answers
3k views

How can teams collaborate on Unity 3D projects? [duplicate]

With a friend of mine, we are planning to develop a small game to get the hang of game development and teamwork. But since Unity 3D barely supports version control (or at least the free version lacks ...
0
votes
1answer
1k views

2D sort for inventory items?

I asked this question some time ago. Now I ended up with just a sorter method that will sort the items based on their bulkiness/nSlotsRequired. Here's what I'm doing: I store all the items I have in ...
-1
votes
3answers
295 views

Options for a functional-style enthusiast? [duplicate]

Senior programmer who has been coding in a functional style for years. I want to make an attempt on the indie games market, but I don't find any good, big platform that provides a good way to code ...
10
votes
2answers
5k views

How do I flatten terrain under a game object?

I've got a script that makes a terrain object and paints it with textures, but I'm having an issue. When I attempt to place game objects (such as the simple water object that unity provides), I use a ...
2
votes
1answer
84 views

Knowing when an ad was clicked

Is there a way in Unity to know when an ad was clicked? Some plugins for different advertising networks have events that fire when the ad was clicked, but if there is no such event - how do I know ...
3
votes
2answers
1k views

Get Unity to read in objects name without the need to hard code

I'm trying to get away from having to hard code in the names of objects I want my code to use. For example, I'm use to do it this way: ...
2
votes
3answers
5k views

When I shoot from a gun while walking, the bullet is off the center, but when stand still it's fine. (Video Included)

I am making a small project in Unity, and whenever I walk with the gun and shoot at the same time, the bullets seem to curve and shoot off 2-3 CMs from the center. When I stand still this doesn't ...
3
votes
2answers
1k views

Which game portals support Unity games? [closed]

I'm considering development of some simple Unity games but am worried about distribution. Which well known game portals currently support unity?