Unity Community |

Showing Results 1 to 25 of 500 results for Type: Posts; User: tonyd
Search took 1.59 seconds.
Use ScaleMode.ScaleToFit:
var background : Texture2D;
function OnGUI(){
GUI.DrawTexture(Rect(0,0, Screen.width, Screen.height), background, ScaleMode.ScaleToFit);
}
I haven't posted in a few weeks, and when I tried to log in, I had to reactivate my account and "claim" my user name.
Just wondering why this happened.
Don't assume everyone who dislikes C# is an inexperienced newbie.
Since I haven't posted this in a while:
It's a great language for former python users, or anyone who likes clean, concise code.
I've agreed with much of what you've said in this thread, but I can't agree with dividing games into casual or hardcore categories based on some arbitrary time limit per level.
IMO, it's...
With 'casual' gamers spending more money on games, spending more time playing them, and playing a wider variety of genres than the so called hardcore gamers, I'd say casual has become the new...
I think we're already seeing a divide.
In general, most mobile gamers want fun little twitch or puzzle games, while console gamers seem to want ultra realistic, immersive games.
You can call it...
It's a safe bet that both the PS4 and XBOX 720 will have newer tech and better overall specs than Nintendo's machine. It also doesn't matter, as the superior machine rarely wins the "system wars"....
Quite a few actually. While Sony and Microsoft were content to go after existing gamers, Nintendo created a whole new generation of them.
They're over 100 years old, of course they didn't start out making video games. But they are more of a game company than Sony or Microsoft (or Apple). And while I'm not exactly a Nintendo fanboy, I...
You just got to laugh at this thread, and anyone who thinks a 120 year old company with some of the most iconic IP in the business is just to going to throw in the cards (pun intended) after one bad...
Newbie guide to Unity Javascript
Wow, someone woke up on the wrong side of bed this morning.
Let's revisit what the OP asked, shall we:
He's not asking about creating instance counts or instance IDs (which is a certainly a...
I believe you want to use the comparison operator '==', rather than the assignment operator '='
if ( myVariable == 1) //checks to see if myVariable equals 1
rather than
if (myVariable =...
Presumably, you know what you're doing, and will only attach said script to a single object.
But many newbies have made the mistake of using static vars for scripts that get attached to multiple...
You can actually use macros to add this print functionality to Unity:
//Save as 'printx.boo', place in asset folder
import Boo.Lang.Compiler
import Boo.Lang.Compiler.Ast
macro printx:
for...
Generally best to use the latter for most things. You can also have scripts communicate via BroadcastMessage.
Only use Static variables in scripts that don't inherit from MonoBehaviour (and thus...
There are multiple methods:
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.D)){
//do something
}
if...
Welcome to Unity.
Either remove first line (pragma strict) or declare your types:
#pragma strict
function Update(){
PrintToScreen("john");
Addition(12,32);
If you properly format your code people here will be more likely to help, and it also allows you to debug your own code more easily.
Your code works fine for me except some of the braces were in...
The code is collapsed... this has been a problem with their website for a few weeks now.
There should be 3 icons in the blue bar at the top of screen. Press the left one and the code should expand.
Welcome to Unity!
Read this:
Accessing other Game Objects
Accessing other Components
Also, scripting questions should be posted in the scripting forum.
You can do some interesting things with Duck Typing, but I was actually referring to Boo Generators and Macros. And Boo's "syntactic sugar" allows you to do some neat things as well:
//swap two...
A Temple Run clone is too complex a project for a beginner. Start with something simple; once you are more experienced with Unity and scripting in general you can attempt more challenging projects.