Skip to content

Custom Data Nodes

Edward Andrew edited this page Sep 30, 2018 · 1 revision

Custom Data Nodes

Adding Custom Data Nodes to Objects

To add Custom Data Nodes to objects in your scene, simply select all the objects, go the Edward Andrew toolbar menu select Terrain Heatmaps -> Add Custom Heatmap Node to Selected GameObjects. All the GameObjects you selected should now have the Custom Heatmap Node script component attached.

Using Custom Data Nodes

Custom Data Nodes are used to supply any Terrain Heatmap in the scene with any kind of custom data you like. You can interface with them directly in scripts and change any of their properties at runtime, adding and deleting Custom Data Nodes at runtime is supported.

The position of the GameObject a Custom Data Node is used to determine its location on the Heatmap.

Value

The value of this Custom Data Node is the value that will be on shown on the Heatmap.

Brush Size

A Custom Data Node can effect several data points on a Heatmap, increasing the size of a Custom Data Node will cause more data points to be effected by the Custom Data Node.

Brush Hardness

The hardness of the brush determines the amount of falloff. Currently only linear falloff is supported.

While the Brush Hardness value is a float and can be set to any value in the range of a float, the effects of the hardness are limited to the range 0-100. A value of 100 results in no falloff, whereas a value of 0 provides the full amount of falloff.

Brush Opacity

The opacity of the brush, setting the opacity to 0 results in the Custom Data Node not being displayed on the Heatmap, despite what its value is.

The active range of the Brush Opacity is between the 0 and 100 values.

Overwrite Other Nodes

This controls if the values of overlapping nodes are to be considered when drawing this Custom Heatmap Node on a Heatmap. It’s disabled by default which results in values of overlapping Heatmap nodes to have an additive effect.

When this is enabled, the values of all other Heatmap Nodes that may be overlapping are ignored. There is currently no way of controlling the order of how the Custom Heatmap Nodes are being used to draw the Heatmap.

Filter

This is a string value. A Custom Data Node will only be displayed on Heatmaps that have a matching filter string.