Table of Contents

UnitySourceGeneratorAttribute Class

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class UnitySourceGeneratorAttribute : Attribute

Implement the following methods on generator class.

  • static string OutputFileName()
  • static bool Emit(USGContext, StringBuilder)
Inheritance
UnitySourceGeneratorAttribute

Constructors

UnitySourceGeneratorAttribute(Type)

Properties

GeneratorClass
OutputFileEncoding
OverwriteIfFileExists