Quantcast
Browsing latest articles
Browse All 22 View Live

detecting if the mouse is inside any gui element

Hey, I'm working on an application that has RTS like elements. The user selects objects with the left mouse button moves them to a new position with the right mouse button. Left clicking on an non...

View Article


Playing a movie texture. No .Play() definition in UnityEngine.Texture class...

Hey, I'm trying to play a movie that I have placed as a texture onto a material. The [movie texture script reference][1] says the following: // this line of code will make the Movie Texture begin...

View Article


Arguments for Unity's Atan2 and unity vector subtraction the wrong way round?

Hey there, I'm trying to work out the angle of one object in relation to another. if(object A is at (5,0) and object B is at (10,0) then (assuming that 0 degrees is (0,1)) then object B is at 90...

View Article

C# Generic return type

Hey guys, I want to get the last element in a List. I'm aware you can do List[List-1] but I'm needing to do this a lot and it looks ugly, especially when it is nested: List list1 = new List(); //A has...

View Article

Controlling the curvature of a Bézier curve

Hey guys, I've been working on a curve generator for my game. I'm using it to plot a course for a ship. First a little background; our ships have a maximum rotation of x and can move a maximum range of...

View Article


Why is Random.Range exclusive for integers but inclusive for floats?

Hey guys, This is probably a bit of an inane question, but I'm curious. http://docs.unity3d.com/Documentation/ScriptReference/Random.Range.html Why are the arguments for the float one [inclusive],...

View Article

Possible to changeMonodevelop's auto complete background colour

Hey quick question this time. I use a custom dark theme for my Monodevelop windowand use a fairly bright yellow for some of my elements. Unfortunately the new Monodevelop uses a white background for...

View Article

Unable to see the contents of a List while debugging

Hey guys, While I'm stepping through my projects with the debugger, I can't see the contents of any of my Lists (System.Collections.Generic.List). When I hover over the List and click the drop down I...

View Article


c# How does an == decide if two objects are the same?

Hey guys, I've had a bit of a google around for the answer to this question, maybe I don't know the terms I need in order to find the answer so I'm going to ask on here. Please forgive me if this has...

View Article


Smooth path finding for agents with turning circles.

Hey guys, My team is currently working on a project in which the player and A.I control spaceships of various different sizes. These ships have different turn speeds, the fighters can turn very...

View Article

Graduating from UNET NetworkManager

Hey guys, I'm fairly new to networking in general and am just starting to get to grips with UNET. I've finished the "Setting up a Multiplayer Project from Scratch" tutorial found [here][1] and have...

View Article
Browsing latest articles
Browse All 22 View Live