Class RandomRectsNode
Creates random rectangles within the given bounds.
Inherited Members
Namespace: InsaneScatterbrain.MapGraph
Syntax
[ScriptNode("Random Rectangles", "Rectangles", true)]
[Serializable]
public class RandomRectsNode : ProcessorNode, IProcessorNode, IProviderNode, IConsumerNode, IScriptNode, INode
Properties
Bounds
Gets the latest provided bounds. Only available in the editor.
Declaration
public Vector2Int Bounds { get; }
Property Value
Type | Description |
---|---|
Vector2Int |
Rects
Gets the latest generated rectangles. Only available in the editor.
Declaration
public RectInt[] Rects { get; }
Property Value
Type | Description |
---|---|
RectInt[] |
Methods
OnProcess()
Contains all the processing logic of this node. Called by Process.
Declaration
protected override void OnProcess()