x


What parts of the MSDN Library can be imported into Unity?

It all started with a CapsLock issue - because you cannot read its current state neither with Input.GetKey(KeyCode.CapsLock) nor Event.capsLock - only you can say is that buton is pressed down. I wanted to use System/Console/CapsLock and written a code:

import System;

function Start () {
 print(Console.CapsLock)
}

and it says: Unknown identifier: 'CapsLock'. Must be a security kind of thing - right? Or I hope I overlooked something. Did I?

more ▼

asked Jan 17 '11 at 10:49 AM

BitMiller gravatar image

BitMiller
197 15 15 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Make sure you have the full .NET 2.0 api selected in Edit > Project Settings > Player > Other Settings. It's the Api Compatability Level setting, which defaults to .NET 2.0 Subset.

System.Console.CapsLock works fine for me with a windows or mac target and the correct api selected.

Besides that - there's a number of things that unity doesn't include, which you can sometimes fix by pulling in the relevant dll from a mono install. Not everything will work that way though, so in those cases you'll need to look for an alternative

more ▼

answered Jan 17 '11 at 04:09 PM

Mike 3 gravatar image

Mike 3
30.7k 10 67 255

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x996
x76
x67
x4
x4

asked: Jan 17 '11 at 10:49 AM

Seen: 727 times

Last Updated: Jan 17 '11 at 10:49 AM