Capítulo 64 de 859

Chapter 64: LineDashedNodeMaterial

Core Idea

Node material version of LineDashedMaterial.

Key Concepts

  • dashOffset : number: The dash offset.
  • dashScaleNode : Node.<float>: The scale of dash materials is by default inferred from the scale property. This node property allows to overwrite the default and define…
  • dashSizeNode : Node.<float>: The dash size of dash materials is by default inferred from the dashSize property. This node property allows to overwrite the default and…
  • gapSizeNode : Node.<float>: The gap size of dash materials is by default inferred from the gapSize property. This node property allows to overwrite the default and d…
  • isLineDashedNodeMaterial : boolean (readonly): This flag can be used for type testing.
  • offsetNode : Node.<float>: The offset of dash materials is by default inferred from the dashOffset property. This node property allows to overwrite the default and …

Reference Tables

Constructor

Signature
new LineDashedNodeMaterial( parameters : Object )

Properties

PropertyDescription
.dashOffset : numberThe dash offset.
.dashScaleNode : Node.<float>The scale of dash materials is by default inferred from the scale property. This node property allows to overwrite the default and define the scale with a node instead.
.dashSizeNode : Node.<float>The dash size of dash materials is by default inferred from the dashSize property. This node property allows to overwrite the default and define the dash size with a node instead.
.gapSizeNode : Node.<float>The gap size of dash materials is by default inferred from the gapSize property. This node property allows to overwrite the default and define the gap size with a node instead.
.isLineDashedNodeMaterial : boolean (readonly)This flag can be used for type testing.
.offsetNode : Node.<float>The offset of dash materials is by default inferred from the dashOffset property. This node property allows to overwrite the default and define the offset with a node instead.

Methods

MethodDescription
.setupVariants( builder : NodeBuilder )Setups the dash specific node variables.

Key Takeaways

  1. LineDashedNodeMaterial extends: EventDispatcher → Material → NodeMaterial
  2. Most relevant properties: dashOffset, dashScaleNode, dashSizeNode, gapSizeNode.
  3. Key methods: setupVariants.

Connects To