Running Editor Code On Launch unityscript

There is no unityscript example for this:

Does it only work on c#?

Unity does not have functions/code which only works in C# or UnityScript. All functionality works in both languages.

The InitilaizeOnLoad class is an attribute and used in the same manner as other attributes in UnityScript: with the @ symbol: Similar to the ExecuteInEditMode attribute.

@script InitializeOnLoad()

class ClassName
{
    static ClassName()
    {
        //Do Stuff
    }
}