Unity Community


Showing Results 1 to 25 of 500 results for Type: Posts; User: tonyd
Search took 1.59 seconds.

Page 1 of 20 1 2 3 4

Results  

Whats the best method for placing a backgroud image with a script?

Use ScaleMode.ScaleToFit:


var background : Texture2D;

function OnGUI(){
GUI.DrawTexture(Rect(0,0, Screen.width, Screen.height), background, ScaleMode.ScaleToFit);
}

05:17 AM
Changes to forum?

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.

06:10 AM
Future Scripting Language for Unity?

Don't assume everyone who dislikes C# is an inexperienced newbie.

Since I haven't posted this in a while:

06:04 AM
Just made a new Pathfind algorithm in Boo

It's a great language for former python users, or anyone who likes clean, concise code.

05:22 AM
Next-generation consoles 'will be the last' says Crytek CEO

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...

07:47 AM
Next-generation consoles 'will be the last' says Crytek CEO

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...

06:07 AM
Next-generation consoles 'will be the last' says Crytek CEO

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...

06:56 AM
Wii U support

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"....

05:45 AM
Wii U support

Quite a few actually. While Sony and Microsoft were content to go after existing gamers, Nintendo created a whole new generation of them.

04:42 AM
Wii U support

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...

04:08 AM
Wii U support

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...

05:24 PM
05:49 PM
Python

Yes, you should be able to put them in a sub folder.

12:38 PM
Accessing member variables

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...

06:23 AM
Got some questions on optimization

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 =...

05:51 AM
Accessing member variables

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...

05:42 AM
Python

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...

05:33 AM
Accessing member variables

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...

04:33 AM
HELP Multiple buttons, same result.

There are multiple methods:


if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.D)){
//do something
}

if...

05:43 PM
problems with javaScript functions

Welcome to Unity.

Either remove first line (pragma strict) or declare your types:


#pragma strict

function Update(){
PrintToScreen("john");
Addition(12,32);

03:08 PM
help with enum and switch statement

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...

02:22 PM
Python

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.

02:04 PM
How to use another scripts variable in c# scripitng?

Welcome to Unity!

Read this:

Accessing other Game Objects
Accessing other Components

Also, scripting questions should be posted in the scripting forum.

12:37 PM
Python

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...

12:00 PM
script help

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.

06:17 AM
 
Page 1 of 20 1 2 3 4