Terrain Flush#
Miscellaneous / Terrain / Terrain Flush
Description#
Executes the Flush method on the Terrain component
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Terrain Flush")]
[Category("Miscellaneous/Terrain/Flush")]
[Description("Executes the Flush method on the Terrain component")]
[Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
[Serializable]
public class GenInstructionTerrain_Flush_0 : Instruction
{
[SerializeField] private GetGameObject m_Terrain = new GetGameObject(
new GenTypeGameObject_Terrain()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Flush");
return $"{this.m_Terrain} {method}";
}
protected override Awaitable Run(Args args)
{
Terrain component = this.m_Terrain.Get<Terrain>(args);
if (component == null) return Done;
component.Flush();
return Done;
}
}
}