From Unify Community Wiki
Revision as of 09:32, 14 August 2006 by Aarku (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Can't the script be simplified a bit by just using Input.GetKeyDown()? It will only return true on up->down transition and you won't have to track it manually. NeARAZ 08:02, 12 August 2006 (GMT)

Ah. Yes. Thanks for pointing that out. I'd simply missed that function when reading the Unity docs. I'll post the improved version of the script now. Hayden

Path to Desktop

Actually, Mono/.NET has functions to get this path. <csharp>Environment.GetFolderPath(Environment.SpecialFolder.Desktop)</csharp>

Technically, I've heard people are supposed to put things like saved games and screenshots in the user's Documents folder. It was in some HIG of Apple's, but we all know how much those are followed. --Aarku 09:30, 14 August 2006 (GMT)

Personal tools