s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Attributes
CodeGeneratorAttribute
chevron_left Attributes
attribute
CodeGeneratorAttribute

Constructors

functionsCodeGeneratorAttribute

Properties

data_objectCallbackNamedata_objectPrioritydata_objectType
CodeGeneratorAttribute
An attribute that can be added to a custom System.Attribute class for special code generation behavior. They'll then be applied to methods and properties when they are decorated with <i>that</i> attribute.
attribute Sandbox .
Sandbox.System

build Constructors 1

CodeGeneratorAttribute (type, callbackName, priority)
Perform code generation for a method or property.

data_object Properties 3

CallbackName
string
The name of the callback method. This can be a fully qualified static method callback or a simple callback to invoke on the target object if the method or property target is not static.
Priority
int
Attributes with a higher priority will wrap the target first. The default priority is 0.
Type
CodeGeneratorFlags
The type of code generation you want to do. You will need to specify whether it should apply to instance or static methods and properties using the Sandbox.CodeGeneratorFlags.Instance and Sandbox.CodeGeneratorFlags.Static flags.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter