Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Perlin Noise 1D#

Math / Arithmetic / Perlin Noise 1D

  • Can Read

  • Cannot Write

Description#

Returns the result of feeding a value into a Perlin Noise function

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Perlin Noise 1D")]
    [Category("Math/Arithmetic/Perlin Noise 1D")]
    
    [Description("Returns the result of feeding a value into a Perlin Noise function")]
    [Image(typeof(IconNoise), ColorTheme.Type.Yellow)]
    
    [Keywords("Map", "Random")]
    
    [Serializable]
    public class TypeNumberMathPerlinNoise1D : TypeNumber
    {
        [SerializeField] private GetNumber m_Number = new GetNumber();

        public override double GetPreview(GameObject source) => Mathf.PerlinNoise1D((float) this.m_Number.GetPreview(source));

        public override double Get(Args args)
        {
            float number = (float) this.m_Number.Get(args);
            return Mathf.PerlinNoise1D(number);
        }

        public override string ToString()
        {
            return $"Perlin Noise with {this.m_Number}";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.