Class StrokeInputProvider
Rebuilds graph authoring inputs from an action's saved sample stroke and current scene terrain.
[Serializable]
public sealed class StrokeInputProvider : IExternalInputProvider, ITerrainGraphArgumentsFiller
- Inheritance
-
StrokeInputProvider
- Implements
- Inherited Members
Remarks
The action reference is serialized directly and can be recovered from its asset GUID after an Editor domain reload. Generated resources are transient and owned by this provider until CleanUp. One provider must not be shared between concurrent executions.
Constructors
- StrokeInputProvider(StrokeAction)
Creates a provider that feeds the action's sample stroke to its graph, for authoring.
- StrokeInputProvider(StrokeAction, Stroke)
Creates a provider that feeds one specific stroke to the action's graph.
Methods
- CleanUp()
Releases generated inputs after graph execution, including partially prepared inputs. Safe to call repeatedly.
- FillTerrainGraphArguments(TerrainDataGraph, IDictionary<int, Args>)
Supplies the recorded brush parameters for nodes that turn brush values into graph textures.
- GetDebugConfigs()
Returns configs matching the prepared inputs, or the current sample when no inputs have been prepared.
- RemoveTexture(string)
Detaches a generated texture from this provider and transfers its ownership to the caller.
- SetInput(GraphInputContainer, GraphAsset)
Rebuilds aligned mask and proximity textures, and scene height when requested by the executing graph.