Creating functions for Asset Store users

Hey guys,

I am making an asset for asset store and my project requires a few custom made functions.

I want users to use “using myNamespace” in order to call functions.

I know I need to declare a namespace, but how do I declare functions correctly inside of it?

Thanks in advance :slight_smile:

You don’t declare functions in a namespace - you declare classes in a namespace and declare functions in a class.

namespace ElmarsStuff {
public class ElmarDoesThings {
public static void DoTheThing() {
}
}
}

//other files
using ElmarsStuff;

....

ElmarDoesThings.DoTheThing();
1 Like

Thanks a lot! Works like charm :smile: