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)

2
votes
1answer
125 views

Calculating/Predicting a way

I'm just starting with physics, so I'm not always sure about what I'm doing. It's a 2D project but I'm using 3D physical objects like SphereCollider etc.. What I have: Objects floating in space and ...
0
votes
1answer
115 views

Make Gameobject Stand On Surface Facing Certain Direction

I want to make a biped character stand on any surface I click on. Surfaces have up vectors of any of positive or negative X,Y,Z. So imagine a cube with each face being a gameobject whose up vector ...
3
votes
1answer
1k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
1
vote
1answer
96 views

How can I translate a game object towards a position?

I am instantiating my game objects (spheres) through scripts. I want my spheres to move from one location to another. but I don't know how to do this. Update is called once per frame. Is that what I ...
0
votes
1answer
40 views

Stopping sprties from toppling off platform

I am new to Unity and am trying to create a simple 2d platformer. I have applied a box collider to my player sprite and the floor/platform its standing on. Now when I go over the platform, it toppes ...
1
vote
2answers
103 views

Compute world position by walking N units along spline?

My goal is to move ahead along a spline 'x' world units, unfortunately there is no way to map spline points to world points. What I do is I iterate along the spline by a small alpha amount (say ...
0
votes
2answers
163 views

Unity 2d: How stop movement when object hit a wall

I created a square that slides on a flat ground. public class PlayerMoveScript : MonoBehaviour { float move = 0; void Start (){} void FixedUpdate () { if (move == 0) { ...
0
votes
1answer
60 views

How do I add a Rigid body and a box collider component to a Texture2D?

I am making a snake game. I'm basing it on a basic tutorial game, which does no collision detection, wall checking or different levels. All snake head, piece, food, even the background is made of ...
0
votes
0answers
39 views

Moving object next to another object

Is there a common way to get to game objects with colliders to 'touch' each other without trying to reach the same position? I dont want to move object A to the position of object B cause they will ...
0
votes
1answer
76 views

How do I make an object's y-axis align with a Vector3?

I have a golf ball on the ground, and from a raycast, I have the normal which gives me the slope of the ground by the ball. I have an object which is rendered on the HUD to show that slope to the ...
2
votes
1answer
38 views

Unity3D How to tell when editor script is added to object

What I want is a way that an editor script can tell when it has been attached to an object in the scene. OnEnable() and Awake() only happen when you bring an object with the editor script attached ...
1
vote
1answer
91 views

Creating teams 2v2, 3v3, etc

I'm figuring out how to create games with teams. The problem is that there will be games 1v1, 2v2, and so on as well as free for all. What would be the most efficient way to do this in Unity C#? I'm ...
5
votes
3answers
762 views

Does Unity's “Transparent Bumped Specular” translate to “semi-shiny must be semi-transparent”?

Unity's documentation for the "Transparent Bumped Specular" shader/material-type is simply a concatenation of each of the descriptions for its Transparent and Specular Shaders (and also Bumped, but ...
2
votes
3answers
185 views

How to trust a UDP Client

I'm working on a Unity project with the Lidgren UDP library for connection. I'm new to networking, so I'm not sure on general "best practices" for this area. I'm trying to figure out a good way to be ...
0
votes
1answer
32 views

unity rts on mobile : how can units find each other as simple as possible

Situation: I have a grid of 100 by 100 tiles. each tile has a list of units that are currently standing ontop of it. in this grid 500 units of team 1 and 500 units of team 2 are randomly walking ...
3
votes
1answer
678 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
121 views

What are Unity3D Substances?

Recently in a tutorial I saw the use of substances in Unity3D. What I got from the tutorial is that a Substance is a material, which we can manipulate dynamically on run time. I am still unclear about ...
7
votes
4answers
12k views

2D character controller in unity (trying to get old-school platformers back)

This days I'm trying to create a 2D character controller with unity (using phisics). I'm fairly new to physic engines and it is really hard to get the control feel I'm looking for. I would be really ...
1
vote
1answer
141 views

Long delays in Unity3D substance generation

Currently working on an iOS/Android project in Unity3d, and we're seeing some incredibly long times for generating substances between testing runs. We can run the game, but once we shut down the ...
0
votes
0answers
97 views

Cross-platform ad-hoc local mobile multiplayer

I want to implement ad-hoc cross-platform (iOS, Android, and PC) device discovery for local multiplayer, like this scenario: http://www.youtube.com/watch?v=csXYZf2vGdE Multiple players, each with ...
0
votes
2answers
237 views

Unity - 2D Wall Jumping [closed]

I'm developping a 2D platformer and i'm facing a little trouble. I'm actually trying to develop a Wall detection and the possibility to Wall Jump and go in the opposite direction. I'm able to detect ...
1
vote
1answer
98 views

Unity3D Multiplayer Networking

I am making a multiplayer game using Unity3D, similar to SecondLife (but focusing on a particular gameplay task). Users will be able to register/login directly in the game and their character will be ...
1
vote
1answer
249 views

GUIText size on 4:3 and 16:9 is different

I have a text (guiText) on the screen. It shows correctly when viewed on 16:9 resolution. But it scales up when viewed on 4:3 (e.g iPhone4). I am using following ObjectLabel script to place it on ...
2
votes
4answers
168 views

(unity) move the world or the character

I'm making a game like this: https://www.youtube.com/watch?v=hO7573lphqI wherein a 3D ship is flying around on a 2D plane. From the player's perspective, the ship will stay stationary in the center ...
2
votes
2answers
278 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 ...
0
votes
1answer
80 views

Why is mesh baking causing huge performance spikes?

A couple of seconds into the gameplay on my Android device, I see huge performance spikes caused by "Mesh.Bake Scaled Mesh PhysX CollisionData" In my game, a whole level is a parent object containing ...
0
votes
1answer
122 views

Unity3d and Windows 8 run game in frame

How do I set Unity3D to run my game on Windows 8 in a fixed size frame (with a border around it) and not in fullscreen? I tried setting this in the Unity script and in the final C# project, but ...
0
votes
1answer
87 views

How can I switch two GameObects in an array in Unity?

I'm putting together a match-3 as my first unity project and I'm having some trouble with switching two GameObjects. I thought I had it working, but I was running into strange issues. I hunted them ...
0
votes
2answers
141 views

Use both AddForceAtPoint and change velocity property?

I'm using Rigidbody2D for some game objects. It seems that when I AddForce() or AddForceAtPoint(), the game objects are mostly affected on the Y axis and hardly at all on the x axis. I don't ...
18
votes
7answers
7k views

Algorithm for creating spheres?

Does anyone have an algorithm for creating a sphere proceduraly with la amount of latitude lines, lo amount of longitude lines, and a radius of r? I need it to work with Unity, so the vertex positions ...
2
votes
1answer
127 views

Retrieve the original prefab from a game object

How would one proceed to retrieve the original prefab used for instantiating an object? In the editor these two functions work : Debug.Log(PrefabUtility.GetPrefabParent(gameObject)); ...
1
vote
1answer
420 views

Unity Frustum Culling Issue

I'm creating a game that utilizes off center projection. I've got my game set up in a CAVE being rendered in a cluster, over 8 PC's with 4 of these PC's being used for each eye (this creates a ...
2
votes
1answer
326 views

Unity3d Run In Background setting not working in fullscreen standalone

I've ran in to an odd issue with my Unity3D game completely pausing in certain scenarios, even with the Run In Background player setting on. For reference I'm on Windows 7 Ultimate using Unity 4.3.3 ...
5
votes
1answer
303 views

Lightmapped prefabs for procedural content

I'm doing a game with procedural content from handmade prefabs, but I ran into a problem as Unity bakes the scene instead of objects when lightmapping with Beast. So when the prefabs are instanced ...
3
votes
3answers
1k views

In Unity, can I load a local (/Resources folder) website to safari on an ipad

In Unity, can I load a local (/Resources folder) website to safari on an ipad? This works fine on a Mac, opening up a wepage from my Resources folder. string path = ...
0
votes
1answer
90 views

Unity3D animation trigger reset

How can I reset conditions for animations using an animation controller? I have a door that will open when a boolean property in a script is set to true. This then calls setTrigger on the animator to ...
13
votes
2answers
3k views

Can I legally remove the default Unity splash screen by removing it from the APK?

While using Unity I export an Android game as an APK. When the APK is run, the first thing that is displayed is the Unity splash screen. I worked out that I could replaced that image by opening the ...
0
votes
0answers
59 views

Selling Game Apps Online Condition: Export Law

Is it legal to publish and sell Android game apps powered by Unity 3D, regardless if it is a paid app or free app? I found on this terms and conditions or agreements, no. 11 on export law. Is there ...
1
vote
1answer
59 views

Unity Property inspector glitched? [closed]

I just updated my Unity from 4.3.3 to 4.3.4 and there is something very wrong with the Property Inspector window. I tried restarting Unity, as well as load a different project, but neither fixed it. ...
0
votes
0answers
69 views

Creating a content pipeline for a Unity

I have a game with lots of assets, such as data files, images, etc. My understanding is that Unity is optimized to know about all resources at build time. i.e. binding those assets to Scene ...
0
votes
1answer
97 views

Unity - Light and sprite collision

I'm a beginner in Unity and i'm facing a little problem / question. The main purpose of my 2D game is based on the mouvment of a specific light and the player have to avoid getting inside his rays. My ...
1
vote
0answers
112 views

Unity 2D loading Spritesheet Atlas at runtime from web and using it dynamically

I am new to Unity (came from AS3/Starling) and just started for 2D games in Unity. I have a spritesheet / texture-atlas (many different sized images packed in a single png) which I want to download at ...
4
votes
5answers
365 views

Goalkeeper Jumping Algorithm?

This may be a "best way to" question, so may be susceptible to opinion-based answers (which is ok for me). But I would also like if there are any tutorials , research papers , etc. I'm trying to make ...
0
votes
0answers
33 views

How to play an array of videos from StreamingAssets

I am playing a video on click of a button,which is stored in the streamingassets folder using : Handheld.PlayFullScreenMovie ("Demo 1.mp4"); But I would want to load all the videos present in the ...
1
vote
0answers
27 views

How to impale and stack targets correctly according to the collider and its coordinate?

I'm making another simple game, a catch game, where a spawning target game object must be captured using a skewer to impale it. Here how: At the start, the falling object (in red) will fall in a ...
1
vote
1answer
97 views

Persist emitted particles in scene after particle system has ended/destroyed?

In Unity, is is possible to persist emitted particles in a scene after the system has ended or even possibly destroyed? I have a particle system attached to my player prefabs that does a rudimentary ...
2
votes
3answers
151 views

Strategy for detecting hits from a “cylinder ray”?

I was planning on using ray casting for collision detection in my game. However, when I use an attack similar to this: (which would project something like a cylinder), how would I go about ...
2
votes
1answer
211 views

How can I play an RTSP video stream in Unity3D?

I want to play an RTSP video stream on a Texture2D. The stream is coming from an IP camera and is encoded with H.264, MJPEG or MPEG4. I know about VLC's libraries, ffmpeg, direct show, media ...
3
votes
2answers
249 views

How do I unload a scene after doing LoadLevelAdditive?

I have scene A loaded. I load scene B with LoadLevelAdditive. How do I unload scene B and keep scene A loaded?
0
votes
0answers
73 views

Does Unity3D NaCl work on Samsung Smart TV?

I asked about this before on here (UNITY forum). I have some answer already but still confused. Hope someone can help me on this problem. AFAIK, Google is not support pepper_25 anymore, so developer ...