Click or drag to resize

Welcome to Aspect documentation

Aspect oriented programming (AOP) support for Unity3D

The C# compiler provide basic AOP via System.Diagnostics.ConditionalAttribute.
Example Tag method with Conditional method get called only if macro is defined. If Conditional attribute macro is not defined then method call will be strip at compile time.

C#
[Conditional("DEBUG")]
public static void Log(string message)
{
    //this will only be print in debug mode config
    print(message);
}
Getting Started