The Scale
property of the MapNode
class represents a non-uniform scalar value that affects the size of the map node in the 3D space. This property is of type Vector3
, allowing for independent scaling along the X, Y, and Z axes.
The Scale
property of the MapNode
class represents a non-uniform scalar value that affects the size of the map node in the 3D space. This property is of type Vector3
, allowing for independent scaling along the X, Y, and Z axes.
To use the Scale
property, you can get or set its value to adjust the size of the MapNode
in the scene. This is useful for transforming the node's dimensions without affecting its position or rotation.
// Example of setting the Scale property MapNode node = new MapNode(); node.Scale = new Vector3(1.0f, 2.0f, 0.5f); // Sets the scale to be non-uniform across axes // Example of getting the Scale property Vector3 currentScale = node.Scale; // currentScale now holds the Vector3 value of the node's scale