Accessing pixelOffset

I can’t seem to access guiText.pixelOffset in C# without generating a Null Reference Exception.

I believe the problem can be recreated as follows:

Create a new project
Add a GUIText object to the scene
Create a new C# script and assign it to the GUIText object
Add this line to the Start function: Vector offset = guiText.pixelOffset
Run it

Am I missing something obvious (which I frequently do)?

Thanks.

For one, I don’t believe there’s a class called “Vector” - pixelOffset returns a Vector2.

Yes, there is some weird bug in accessing pixelOffset. Hopefully we’ll fix it soon.