Set Trail Renderer Apply Active Color Space#
Effects / Trail Renderer / Set Trail Renderer Apply Active Color Space
Description#
Sets the Apply Active Color Space property of Trail Renderer component
Parameters#
| Name | Description |
|---|---|
| Trail Renderer | |
| 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 Trail Renderer Apply Active Color Space")]
[Category("Effects/Trail Renderer/Apply Active Color Space")]
[Description("Sets the Apply Active Color Space property of Trail Renderer component")]
[Image(typeof(IconTrailRenderer), ColorTheme.Type.Blue, typeof(BadgeEye))]
[Keywords("Effect")]
[Parameter("Trail Renderer")]
[Parameter("Value")]
[Serializable]
public class GenInstructionBool_TrailRenderer_SetApplyActiveColorSpace : Instruction
{
[SerializeField] private GetGameObject m_TrailRenderer = new GetGameObject(
new GenTypeGameObject_TrailRenderer()
);
[SerializeField] private GetBool m_Value = new GetBool();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Apply Active Color Space");
return $"{this.m_TrailRenderer} {member} = {this.m_Value}";
}
protected override Awaitable Run(Args args)
{
TrailRenderer component = this.m_TrailRenderer.Get<TrailRenderer>(args);
if (component == null) return Done;
component.applyActiveColorSpace = (bool) this.m_Value.Get(args);
return Done;
}
}
}