20 lines
395 B
C#
20 lines
395 B
C#
|
using UnityEngine;
|
||
|
using UnityEditor;
|
||
|
using UnityEditor.TerrainTools;
|
||
|
|
||
|
namespace UnityEngine.TerrainTools
|
||
|
{
|
||
|
internal class NoiseComponent : MonoBehaviour
|
||
|
{
|
||
|
public Material mat;
|
||
|
public NoiseSettings noiseSettings;
|
||
|
|
||
|
void Update()
|
||
|
{
|
||
|
if(mat != null)
|
||
|
{
|
||
|
noiseSettings.SetupMaterial( mat );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|