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)

0
votes
2answers
544 views

In Unity, can I make a GameObject within a prefab disabled by default?

If I create a simple object hierarchy in my scene... -ExampleGameObject --Child1 [is active] --Child2 [is not active] ...how can I accurately store this as a prefab? If I drag ExampleGameObject to ...
1
vote
2answers
221 views

Unity gizmos vs. referenced game objects

I'm designing a Unity script that I intend to be highly reusable and as easy as possible to setup within the editor. To this end, a number of properties of this script really need some kind of visual ...
2
votes
2answers
959 views

What's the proper way to use static objects and singletons in Unity?

I have a GameObject in Unity, which I've attached this script to, in order to make it function as a Static Singleton : using UnityEngine; using System.Collections; public class SceneStatics : ...
9
votes
3answers
340 views

How to simulate pressure with particles?

I'm trying to simulate pressure with a collection of spherical particles in a Unity game I'm building. A couple notes about the problem: The goal is to fill a constantly changing 2d space/void with ...
-4
votes
1answer
295 views

Is it better to unity game engine or use c++ and opengl [closed]

I can program in c++ and opengl i also have used unity in the past i find that it is better to build your own game engine than use someone elses. Opinoins
1
vote
1answer
1k views

Angle between two points

I have a character who walks to random points in my room in Unity. The problem is he always faces one direction, I want to write in C# a piece of code that will get the direction the character is ...
0
votes
1answer
236 views

Character rotating around target

I'm using xaitment plugin for Unity as the AI for a demo level but I have a problem. My character is supposed to walk to random points but while it's walking there it's rotating around the point. I ...
1
vote
1answer
669 views

Unity RTS Movement

I am trying Unity out and I want to try and write an RTS. What would be the best way to go about getting the basic, right click to set a destination working within Unity? I know how to get the ...
3
votes
4answers
574 views

2D Platformer - Methods to Implement a Whip Weapon

I hope posting here isn't a faux pax, if it is please feel free to direct me to the correct location. Or, if there is a thread that already covered this I would love to be pointed in its direction. ...
0
votes
3answers
230 views

Parent-Child position mathematics

What is the math theory when a child object moves with the parent transform? I am doing an angle indicator which shows a field of view, which works fantastic when the angle is static. But I cannot ...
3
votes
1answer
422 views

Multi Screen Rendering in Unity

My experience with Unity in not that in depth. But I am wondering if it possible in unity to split what is being rendered across multiple screens. It's hard to explain, so here is an image: So ...
0
votes
2answers
955 views

Enabling and Disabling children in Unity

I'm trying to create an enable/ disable game objects in Unity. I used GameObject.SetActiveRecursively but it only works one-way. I used a collider in which when an object enters the collider. The ...
1
vote
2answers
362 views

Irregular Shaped Colliders For Unity

Is it possible to create an irregular-shaped collider? If so, how? Would I need to create a couple objects and group them up into one Game Object?
3
votes
2answers
977 views

Best algorithm for recursive adjacent tiles?

In my game I have a set of tiles placed in a 2D array marked by their Xs and Zs ([1,1],[1,2], etc). Now, I want a sort of "Paint Bucket" mechanism: Selecting a tile will destroy all adjacent tiles ...
3
votes
1answer
142 views

What's a viable way to get public properties from child objects?

I have a GameObject (RoomOrganizer in the picture below) with a "RoomManager" script, and one or more child objects, each with a 'HasParallelagram' component attached, likeso: I've also got the ...
2
votes
1answer
282 views

Controlling a GameObject from another GameObject's script component

I'm creating a game where when starting the game, a Cube is duplicated GridSize * GridSize times when the game starts. Now, after the cubes are duplicated I want to attach a variable to them, say ...
1
vote
4answers
378 views

Using Lerp to create a hovering effect for a GameObject

I want to have a GameObject that has a "hovering" effect when the mouse is over it. What I'm having trouble with is actually having a color that gradually goes from one color to the next. I'm ...
6
votes
5answers
955 views

Ignore collisions with some objects in certain contexts

I'm making a racing game with cars in Unity. The car has a boost/nitro powerup. While boosting, I wouldn't want to be deviated when colliding with zombies, but I do want to be deviated when colliding ...
0
votes
1answer
195 views

Periodic updates of an object in Unity

I'm trying to make a collider appear every 1 second. But I can't get the code right. I tried enabling the collider in the Update function and putting a yield to make it update every second or so. ...
4
votes
1answer
447 views

Finding if a point is inside of a mesh (Point-in-polyhedron)

How can I find if a point (Vector3) is inside of a mesh? Would this work for both concave and convex objects? I read somewhere that if you raycast in both directions of every axis (X, -X, Y, -Y, Z, ...
0
votes
3answers
385 views

How Would I create alternate players (Turn base Event)

The picture above shows 2 players. Each containing 3 characters. I want to know how to make a Turn based event starting with player 1 alternating turns with player 2. And in every alternation ...
0
votes
1answer
122 views

What is a correct step by step logic of exporting scene with baked occlusion for loading it at runtime?

I wonder what is a correct step by step logic of exporting scene with baked occlusion (Culling data) for loading that scene at runtime (on fly from the internet for example))? So currently my plan ...
15
votes
6answers
3k 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 ...
3
votes
0answers
360 views

Any recommended books/resources on component-based design?

I come from a background with heavy use of the classical object-oriented paradigm for software development. The company I am a part of switched to Unity not too long ago, and we're all very excited ...
0
votes
0answers
1k views

Turn-based games [closed]

I've been looking for tutorials on turn-based games. I found an incomplete tutorial series by InsugentX about turn-based games. I haven't looked through it, but since it's incomplete, I worry that I ...
1
vote
1answer
1k views

Drawing a dynamic indicator for a field of view

My goal is to draw a dynamic indicator for a cube, which represents the field of view. The ideal indicator would look the same as in Metal Gear Solid(the blue ones): From what I have gathered, I ...
2
votes
2answers
285 views

How to prioritize related game entity components?

I want to make a game where you have to run over a bunch of zombies with your car. When moving around, the zombies have a few things to take into consideration: When there's no player around they ...
1
vote
1answer
75 views

Assigning a colour to imorted obj. files that are being used as default material

I am having a problem with assigning a colour to the different meshes that I have on one object. The technique that I have used is the first approach on this site. Is it possible to export a ...
0
votes
1answer
332 views

How to adjust the shooting angle of an object

I've been trying to add an angle adjustment feature to a power bar that I got from unity3dStudents. But I can't seem to get the code right. I'm using addforce to rigidbody, it works but the power is ...
1
vote
1answer
508 views

Unity: Spin wheels to move vehicle

I am just getting started with Unity and I'd like to ask a question. If I have a "Vehicle" object that has two children: "FrontWheel" and "BackWheel" (both 'wheels' are cylinders), how should I set ...
2
votes
2answers
509 views

Smooth vector based jump

I started working on Wolfire's mathematics tutorials. I got the jumping working well using a step by step system, where you press a button and the cube moves to the next point on the jumping curve. ...
3
votes
1answer
292 views

Xcode workspace with Unity3D as a sub-project?

Let's say we're developing a 2D game with Cocos2d-iPhone and UIKit and CoreAnimation. But we're also considering leveraging the 3D capabilities of Unity 3D. Is it possible that we add the ...
0
votes
0answers
88 views

How to make one complete model from entities in Sketchup (Pro)

Sorry if this seems like a silly question. I prepared a terrain based on geo location on Google Sketchup; however I can't make entities (500 meter square entities, few of them) into one model to ...
3
votes
2answers
2k views

How To Smoothly Animate From One Camera Position To Another

The Question is basically self explanatory. I have a scene with many cameras and I'd like to smoothly switch from one to another. I am not looking for a cross fade effect but more to a camera moving ...
-1
votes
1answer
313 views

How to reduce the time it takes to load my web game? [closed]

I created a puzzle game with Unity and uploaded it to one server. This works fine, but I bought a new server and uploaded my game to it as well. There, the loading time is much longer. These are the ...
-4
votes
1answer
705 views

2D top down game - XNA or Unity? [closed]

Hey I want to develop a top down 2D game, probably with Sprites (although 3D models with a fixed camera is an option too). I know it's not a very specific question - but generally speaking which is ...
0
votes
1answer
552 views

Making a surface transparent from blackness of texture

I am making a "halo" shader in unity using GLSL. And I've come to a roadblock. What I need to do is take a texture, like the following, and make it transparent according to the darkness of it. And I ...
1
vote
2answers
1k views

Type Object does not support slicing Unity3D

I am getting the following error in my code and I can't seem to understand why. Can anyone help me with it? This is my current code. The line causing the error is marked in a comment near the end. ...
0
votes
1answer
635 views

Render 2D textures on a 3D object's face

I am not familiar with 3D graphics, and I'd like to know the right way to render some 2D figures on different points of a wider face of a 3D object. My 3D object is just a cube representing a poker ...
1
vote
2answers
427 views

3D Studio Max biped restrictions?

I have a stock biped character in 3D studio max which has a jump animation. The problem I have with the jump animation is that there is actual y offset happening inside it which makes it awkward to ...
-3
votes
1answer
158 views

What would be a good language to make a Cel Shaded RPG? [closed]

It would be great if you could answer. I am thinking of either Unity or Java, should I do one of those?
-1
votes
2answers
1k views

Is using the student version of 3DS Max and Unity3d legal?

I am developing an indie game together with my friend using Unity3D engine. I bought "Silo 3D" for modeling two month ago and for texturing I use 3D coat. We plan to sell our game in the future. For ...
2
votes
1answer
195 views

Moving Unit Parallel to Mouse in TBS Game

I'm writing a basic Turn-Based Strategy game using Unity3D. It's not grid-based. I've come to the point where I'm coding unit movement, and I'm having trouble figuring out how far to move the units ...
5
votes
1answer
270 views

If I make a 3d model in a .fbx format, do I owe any royalties/fees to autodesk for using fbx files in Unity?

I'm currently making a game where every format for every asset is either opensource/freeformat, or requires no license fees to use. I've pretty much settled happily on .ogg for audio, vorbis/webm for ...
3
votes
1answer
1k views

Changing the size of shuriken particle effects to simulate a torch flame Unity3D

Basically I'm trying to use the "Flame" particle effect to simulate the flame on a torch. My problem is the flame is far too big. I've been trying too figure out how to resize the flame to fit the ...
1
vote
2answers
424 views

Destroying instantiated objects stored in a list not working in Unity

I have a GameObject with associated a javascript. I have defined a private variable like this: private var objects = new Array(); now in the Update method I instantiate new objects and push ...
2
votes
1answer
3k views

most efficient way to create a grid system in unity

I'm creating a little tower defence game to get myself acquainted with unity. At first I was going to emulate a grid system by capturing touches / mouse clicks and rounding the coordinates to the ...
2
votes
1answer
244 views

Why can't I expose a Plane variable in my unity script?

I've got a script which creates raycasts. I wanted to use the (presumably less expensive) Plane.Raycast rather than the GameObject.Collider.Raycast (because the gameobject one has a distance parameter ...
1
vote
4answers
555 views

Does Unity Pro Play Nice With 'Small' Teams

Does anybody know how well Unity Pro plays well with-in small teams? Our team makeup is 2 programmers, 1 audio, and 2 graphics peps. How easy is it for somebody to mess up a Unity project? The ...
2
votes
2answers
950 views

Creating an object in javascript with unity (unityscript)

So I have a ton of experience with JavaScript (its what I do for a living) but I am new to unity. I have built a game engine in javascript but now want to move it over to unity. I have been trying to ...

1 5 6 7 8 9 12