#else, is that any command like this?

I learn from some script, which have this command, “#else”, end with “#endif”, the console show some error.

Please help me!

#else if doesn’t work. The preprocessor else if is a single “command”:

#if UNITY_EDITOR
    //....
#elif UNITY_IPHONE
    //....
#endif

For more information see the msdn docs