Import System etc

Hi all,

Just wondering, is there any overhead in Unity when doing Import System at the top of your script as opposed to just using the full reference throughout the script, such as System.DateTime?

Is it just setting the reference to the .Net dll, or is it actually telling Unity with .Net dll’s to include at compile time as well?

Thanks

There is no performance impact that is worth measuring during run-time.

There wouldn’t be any would there?

Isn’t that just compiler info?

It just makes your code more readable, so you don’t have to type the full name space everytime you use a class or structure

It’s not telling Unity to include any dlls. It’s purely for the convenience of writing code.

–Eric

Yep, that’s right.

Thanks, was just making sure.