Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
NoiseOutputValue.cs
NoiseOutputValue.cs.meta
README.md
README.md.meta

README.md

NoiseOutputValue

Enter a range and a speed in the editor and you will get an output value in that ranges that fluctuates fluently over time using Perlin Noise.

Example

NoiseOutputValueExample Editor Screenshot

public class NoiseOutputValueExample : MonoBehaviour
{
	[SerializeField] NoiseOutputValue positionNoise;
	[SerializeField] Transform sphere;

	private void Update()
	{
		// Updates the value with Time.deltaTime*speed
		positionNoise.Update();

		// Sets the y position at the current output value
		sphere.transform.position = new Vector3(0, positionNoise.OutputValue, 0f);
	}
}

Dependencies