Hello,
can i use classes from the System namespace like System.Array, System.IAsyncResult, System.String or System.Int32 in Unity3d iPhone Advance ?
Greetings
Steffen
Hello,
can i use classes from the System namespace like System.Array, System.IAsyncResult, System.String or System.Int32 in Unity3d iPhone Advance ?
Greetings
Steffen
you use them automatically actually, as Unity does not provide any own base types ![]()
things like int, float, Array etc are all system classes.
yes i use int, string at the moment. This classes arent in the namespace “System”. The classes String, Int32 are in the namespace “System”. If i use String or Int32 classes in the unity3d iphone basic version i get a error that i cant use classes from System or System.Xml namespace.
int, string etc are aliases for System types. You rarely use the actualy System classes by name unless you need one outside the default ones (float, int, double, string, …), for whatever reason.
What you need to ensure is that you don’t use classes that are .NET 2.0 and higher. On the iphone its .NET 1.1 only
“System.String” is a immutable reference type (it inherits from System.Object).
“string” is a reference type.
If i use “System.String” unity3D iPhone basic give me the error
“This project is using both System.dll and System.Xml.dll therfore will build only when assembly stripping is enabled…”
If i use “string” i dont get the error mesage.
I want only know if i can use classes from the “System” namespace in Unity3D iPhone advanced.
No problem with Unity iPhone Advanced
Some of the things don’t work with iPhone Basic, not because UT does not want it to work but because the inclusion of some of these things raise the size of the static libraries above the point where you can not compile your iphone application at all.
I’m likely just blind, but for some reason, I’m fail to see problem though with System.String vs string …
thank you very much indeed.
just have tried System.String in Unity iPhone 1.5 Advanced and everything went fine and smooth.