Explorar o código

Access NoiseType on FastNoiseLite class

Fixes 'Identifier "NoiseType" not declared in the current scope' when following example.
Anthony Good %!s(int64=2) %!d(string=hai) anos
pai
achega
a54fffd60a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/math/random_number_generation.rst

+ 1 - 1
tutorials/math/random_number_generation.rst

@@ -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