ProceduralAsset.

TryCreate(AssetInjectionAttribute, string) Method

Summary

[Editor-Only] If the `injector`s attributed member has a Weaver.ProceduralAssetAttribute this method tries to find a suitable Weaver.Editor.Procedural.AssetGenerator and generator method. If successful, it creates and returns a Weaver.Editor.Procedural.ProceduralAsset containing those details.
Assembly
Weaver.dll
Namespace
Weaver.Editor.Procedural
Containing Type
ProceduralAsset

Syntax

public static ProceduralAsset TryCreate(AssetInjectionAttribute injector, out string error)

Parameters

Name Type Description
injector AssetInjectionAttribute
error string

Return Value

Type Description
ProceduralAsset