Summary
When placed alongside any kind of
Weaver.AssetInjectionAttribute
, this attribute allows the injected
asset to be procedurally generated.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Base Types
-
- Attribute
graph BT
Type-->Base0["Attribute"]
Type["ProceduralAssetAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class ProceduralAssetAttribute : Attribute
Attributes
Type | Description |
---|---|
Attribute |
Properties
Name | Value | Summary |
---|---|---|
AutoGenerateOnBuild | bool |
Determines when the target asset should be automatically generated when compiling a build.
If not set, the global setting will be used.
|
AutoGenerateOnSave | bool |
Determines when the target asset should be automatically generated whenever assets are saved.
Default false.
|
CheckShouldGenerate | string |
The name of a static
bool property or method which determines whether to generate the asset.
|
CheckShouldShow | string |
The name of a static
bool property or method which determines whether to show the asset in
the Weaver.Editor.Window.WeaverWindow .
|
FileExtension | string |
The file extension of the asset file.
Should begin with a period.
If not specified, the
Weaver.Editor.Procedural.AssetGenerator.DefaultFileExtension will be used.
|
Generator | string |
The name of the static method which is used to generate this procedural asset.
|
UseTempScene | bool |
Indicates whether a temporary scene should be opened during the asset generation process.
|