Class RuleTexture Extends GridGraphRule

Public

Modifies nodes based on the contents of a texture.

This can be used to "paint" penalties or walkability using an external program such as Photoshop.

This rule will pick up changes made to the texture during runtime, assuming theTexture.imageContentsHash
property is changed. This is not always done automatically, so you may have to e.g. increment that property manually if you are doing changes to the texture via code. Any changes will be applied when the graph is scanned, or a graph update is performed.

Inner Types

Public Methods

Called when the rule is removed or the graph is destroyed.

Register (rules)

Does preprocessing and adds callbacks to the GridGraphRules object.

Public Variables

Hash

Hash of the settings for this rule.

Public
channelScales
Public
channels
Public
nodesPerPixel
Public
scalingMode
Public
texture
Public

Public Enums

ChannelUse
Public
ScalingMode
Public

Inherited Public Members

Hash

Hash of the settings for this rule.

Public
Pass

Where in the scanning process a rule will be executed.

Public

Call if you have changed any setting of the rule.

enabled

Only enabled rules are executed.

Public

Private/Protected Members

colors
Private