Tagged Questions

Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

3
votes
1answer
961 views

Second camera record and export to video file (Unity)

I'm making horror quest game for PC on Unity. I'm trying my best to make it kind of unique and trying not to use standard methods like screamers etc. What i want to do badly is camera recording ...
0
votes
0answers
115 views

Follow sinus with absolute value

I would like to make an arm follow the sinus of the ball. When I add an absolute value to the ball (on the y axis) to get a more realistic bounce, the ball is going 2 times faster. How could I ask ...
4
votes
1answer
1k 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
2answers
2k views

How do you make the first person object the main camera?

How can a first person object character be made to be the primary viewing camera in unityscript? Do I remove the main camera? or just turn one or the other on/off?
-2
votes
1answer
121 views

How to keep a GameObject from dropping?

I am applying the following script to first person object: function Update () { var mountain : GameObject; mountain = GameObject.Find("QuantumCold_B"); ...
-2
votes
2answers
223 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
2answers
691 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
227 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 ...
1
vote
1answer
323 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
1answer
206 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
312 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
1k 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 ...
0
votes
1answer
189 views

Really weird peaks when profiling a simple scene with Unity3D

I need some help optimizing my game. I have spent last 3 days digging around with no luck. I have noticed really odd results in the unity profiler so, I have created a simple scene with just a cube ...
3
votes
1answer
970 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 Speed --> 1 Run Speed --> ...
1
vote
0answers
278 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: //Get our ship position in screen space Vector3 shipPos = ...
2
votes
3answers
278 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
1k views

How to import character from Blender to Unity?

I am trying to import a character into Unity from Blender. I exported the model (which has actions/animations) from Blender as a FBX file and dropped in into my Unity project’s Assets folder. The ...
3
votes
2answers
312 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 ...
0
votes
0answers
300 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 ...
-1
votes
1answer
2k 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
52 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 ...
2
votes
1answer
951 views

Android SDK does not include any platforms!

This question has been asked several times on the Unity answers website, but there's no solid answer to it! Problem: While trying to build a game for android in Unity, I receive this error: Android ...
11
votes
0answers
2k views

Creating Rope Physics for Unity [closed]

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with velocity after a little extension. Do you ...
0
votes
3answers
654 views

Lerp problem object teleporting not moving

Hi i just wanna move my object smoothly from one position to another but object disappear and immediately teleport to position where i clicking anyone know whats happen ? if ...
0
votes
1answer
381 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
vote
1answer
672 views

How can I create an extending chain like the hookshot in Zelda in Unity?

In the Zelda games, there is an item called the hookshot. It is a small mechanical apparatus held in one hand that acts similar to, but not the same as the gun. When it is triggered, the hook at the ...
-2
votes
3answers
241 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 ...
7
votes
0answers
346 views

Is there a way to stop caching textures at runtime?

Procedural textures with substance seem to update very quickly if you turn off caching, modify one exposed variable at a time, modify it frequently, and even then only after you've attempted to modify ...
2
votes
1answer
72 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 ...
9
votes
2answers
2k 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
2answers
449 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 ...
2
votes
1answer
652 views

Lightmapping & runtime combine children

Is it possible to have lightmapping on runtime generated combine children in Unity? It is possible to bake combined meshes when they are done in the editor, but the .apk/.ipa size increases too much. ...
3
votes
2answers
703 views

How do I morph between meshes that have different vertex counts?

I am using MeshMorpher from the Unify wiki in my Unity project, and I want to be able to transform between arbitrary meshes. This script only works when there are an equal number of vertices between ...
2
votes
3answers
1k 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 ...
5
votes
1answer
2k views

How can I export a .FBX file from Unity3D at runtime?

I want to export an object as a .fbx at runtime in Unity3D. I've made a C# script to export a mesh filter or skinned mesh renderer to a .obj file at runtime, but I want the animation and skin support ...
11
votes
2answers
806 views

Auto-organized / smart inventory system?

for the past week I've been working on an inventory system with Unity3D. At first I got help from the guys at Design3 but it wasn't too long till we split path, because I really didn't like the way ...
2
votes
2answers
2k views

C# and Unity - Learning to Develop a game by developing the game I want to develop [closed]

So I am pretty new to C#, I have some python and javascript experience, but nothing substantial. I have read a lot about C# and Unity and I know they are the tools I want to use. My question is: ...
4
votes
2answers
3k views

Multiple viewpoints in Unity3D?

I'm working on a 3D game in Unity. The primary view is a top-down view, but I am also looking to do target profiles that are true animated versions that reflect the actions of the target. The ...
1
vote
3answers
927 views

Creating Multiple Instances of a camera at run time

I'm trying to create a bunch of different game objects from a settings file I'm passing in at run time. I've checked and my game is reading in settings fine. But when I run the program, I get the ...
0
votes
4answers
1k views

sample project that mix unityscript and c#

I like the simplicity of unityscript, at same time I also like the plenty of c# library and open source projects. I prefer to put my model/controller/logic flow in unityscript using standard unity3d ...
3
votes
3answers
249 views

Game testing solutions?

I have a unity web browser game. Since I'm working on a small company with limited machines which are all of either 2GB RAM or 4 GB RAM with decent processors. I'd like to know if there are any web ...
0
votes
0answers
756 views

Alternative to unity's character controller

I wonder what you guy would do for a cheap replacement of character controller in unity. I try a bunch of implementation and they don't work at all, what I'm doing wrong? I'm trying to make a game ...
1
vote
1answer
1k views

Volumetric Fog Shader - Camera Issue

I am trying to build an infinite fog shader. This fog is applied on a 3D plane. For the moment I have a Z-Depth Fog. And I encounter some issues. As you can see in the screenshot, there are two views. ...
2
votes
1answer
361 views

Fog shader camera problem

I have some difficulties with my vertex-fragment fog shader in Unity. I have a good visual result but the problem is that the gradient is based on the camera's position, it moves as the camera moves. ...
2
votes
3answers
3k views

Unity map size limit?

Does Unity have a map size limit and if there is what is the limit? Is there a way to work around it? I am making a open world zombie survival world and I want to make a really big map. Thanks!
2
votes
1answer
118 views

Getting half plane direction relative from cam position

Im implementing certain Camera movements in my turn based games. I'm able to place and rotate the camera between two units that attack each other. However it will always move to the same "side". Which ...
0
votes
1answer
1k views

Android notifications with Unity

I'm working for the first time on a game for Android using Unity and I need to use Google Cloud Messaging to receive push messages. I've already done the integration of my Unity project with GCM, ...
-1
votes
2answers
145 views

UnityScript generating UnityEngine error

I have the following code set out for a simple animation in Unity: #pragma strict function Start () { } function Update () { if (Input.GetButtonDown("KeyCode.W")){ ...
1
vote
1answer
230 views

Why does my blur shader implementation produce this strange result?

I tried to implement the blur shader shown here. Instead of having a simple 2D texture I use Unity's GrabPass function to capture what's behind the plane to have a transparent effect. Then I apply ...
2
votes
1answer
375 views

How does Application.genuine work?

In Unity, does anyone know exactly what is behind the scenes of Application.genuine? More specifically, I would like to understand its exact process so I can understand: If I can use it safely ...