AssetListGenerator Class


[Editor-Only] An Weaver.Editor.Procedural.AssetGenerator which saves asset lists.
Base Types
graph BT Type-->Base0["AssetGenerator"] click Base0 "/weaver/api/Weaver.Editor.Procedural/AssetGenerator" Base0-->Base1["Object"] Type["AssetListGenerator"] class Type type-node


public sealed class AssetListGenerator : AssetGenerator


Type Description
AssetGeneratorAttribute [Editor-Only] Specifies which asset type can be generated by the attributed class (which must inherit from Weaver.Editor.Procedural.AssetGenerator).


Name Value Summary
DefaultFileExtension string
Inherited from AssetGenerator
GeneratorMethodParameterTypes Type[]
The parameter types of a generator method for this asset type. When overriding this property, consider using Weaver.ReflectionUtilities.OneType(System.Type) or Weaver.ReflectionUtilities.TwoTypes(System.Type,System.Type).
Inherited from AssetGenerator
GeneratorMethodReturnType Type
The default return type for generator methods used by this generator.
HowToCancel string
Explains how to cancel the generation of an asset (for Weaver.Editor.Procedural.AssetGenerator.AppendFullDescription(System.Text.StringBuilder)).
Inherited from AssetGenerator


Name Value Summary
AddItemsToMenu(GenericMenu, ProceduralAsset) void
Populates `menu` with various items for the context menu of `asset`.
Inherited from AssetGenerator
AppendFullDescription(StringBuilder) void
Appends the full description of this Weaver.Editor.Procedural.AssetGenerator and how it is to be used.
Inherited from AssetGenerator
Destroy(Object) void
Destroys the specified `obj`.
Inherited from AssetGenerator
GetAssetPathAndDestroyOldSubAssets(ProceduralAsset) string
Gets the asset path of the existing asset and destroys all of its sub-assets.
Inherited from AssetGenerator
GetGeneratorMethod(MemberInfo) MethodInfo
Attempts to find the generator method assofiated with `assetField`.
Inherited from AssetGenerator
GetGeneratorMethod(MemberInfo, string) MethodInfo
Finds the generator method associated with a particular procedural asset.
Inherited from AssetGenerator
GetMethod(MemberInfo, string, Type[]) MethodInfo
Finds the generator method associated with a particular procedural asset.
Inherited from AssetGenerator
InvokeGeneratorMethod(ProceduralAsset) Object
Invokes `asset.GeneratorMethod` with the correct parameters for this Weaver.Editor.Procedural.AssetGenerator.
Save(Object, string, bool) void
Saves `obj` at the specified `assetPath`.
SaveDefaultAsset(string) void
Does nothing.
UseTempScene(ProceduralAsset) bool
Indicates whether a temporary scene should be opened while generating the specified `asset`. Uses the return value of the generator used for the individual elements of the list.
ValidateGeneratorReturnType(Type) bool
Checks if return type of a generator method is valid for this generator type.