Set Terrain Dering Light Probes For Trees#
Miscellaneous / Terrain / Set Terrain Dering Light Probes For Trees
Description#
Sets the Dering Light Probes For Trees property of Terrain component
Parameters#
| Name | Description |
|---|---|
| Terrain | |
| Value |
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("Set Terrain Dering Light Probes For Trees")]
[Category("Miscellaneous/Terrain/Dering Light Probes For Trees")]
[Description("Sets the Dering Light Probes For Trees property of Terrain component")]
[Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
[Parameter("Terrain")]
[Parameter("Value")]
[Serializable]
public class GenInstructionBool_Terrain_SetDeringLightProbesForTrees : Instruction
{
[SerializeField] private GetGameObject m_Terrain = new GetGameObject(
new GenTypeGameObject_Terrain()
);
[SerializeField] private GetBool m_Value = new GetBool();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Dering Light Probes For Trees");
return $"{this.m_Terrain} {member} = {this.m_Value}";
}
protected override Awaitable Run(Args args)
{
Terrain component = this.m_Terrain.Get<Terrain>(args);
if (component == null) return Done;
component.deringLightProbesForTrees = (bool) this.m_Value.Get(args);
return Done;
}
}
}