Access NoiseType on FastNoiseLite class

Fixes 'Identifier "NoiseType" not declared in the current scope' when following example.
This commit is contained in:
Anthony Good
2023-06-01 20:44:17 +01:00
committed by GitHub
parent 752e65a492
commit a54fffd60a

View File

@@ -445,7 +445,7 @@ terrain. Godot provides :ref:`class_fastnoiselite` for this, which supports
func _ready():
randomize()
# Configure the FastNoiseLite instance.
_noise.noise_type = NoiseType.TYPE_SIMPLEX_SMOOTH
_noise.noise_type = FastNoiseLite.NoiseType.TYPE_SIMPLEX_SMOOTH
_noise.seed = randi()
_noise.fractal_octaves = 4
_noise.frequency = 1.0 / 20.0