Talk:TakeScreenshot

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Path to Desktop)
(Path to Desktop)
 
Line 5: Line 5:
 
== Path to Desktop ==
 
== Path to Desktop ==
  
Actually, Mono/.NET has functions to get this path. <csharp>Environment.GetFolderPath(Environment.SpecialFolder.Desktop)</csharp> http://msdn2.microsoft.com/en-us/library/system.environment.getfolderpath.aspx --[[User:Aarku|Aarku]] 09:30, 14 August 2006 (GMT)
+
Actually, Mono/.NET has functions to get this path. <csharp>Environment.GetFolderPath(Environment.SpecialFolder.Desktop)</csharp> http://msdn2.microsoft.com/en-us/library/system.environment.getfolderpath.aspx
 +
 
 +
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.  --[[User:Aarku|Aarku]] 09:30, 14 August 2006 (GMT)

Latest revision as of 09:32, 14 August 2006

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

[edit] Path to Desktop

Actually, Mono/.NET has functions to get this path. <csharp>Environment.GetFolderPath(Environment.SpecialFolder.Desktop)</csharp> http://msdn2.microsoft.com/en-us/library/system.environment.getfolderpath.aspx

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
Namespaces

Variants
Actions
Navigation
Extras
Toolbox