LOD Group Animate Cross Fading#
Rendering / LOD Group / LOD Group Animate Cross Fading
Description#
Compares the Animate Cross Fading property of LOD Group component to another value
Parameters#
| Name | Description |
|---|---|
| LOD Group |
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;
using UnityEngine.Rendering;
namespace VisualScript.Runtime
{
[Title("LOD Group Animate Cross Fading")]
[Category("Rendering/LOD Group/Animate Cross Fading")]
[Description("Compares the Animate Cross Fading property of LOD Group component to another value")]
[Image(typeof(IconLOD), ColorTheme.Type.Blue)]
[Parameter("LOD Group")]
[Serializable]
public class GenConditionBool_LODGroup_CheckAnimateCrossFading : Condition
{
[SerializeField] private GetGameObject m_LODGroup = new GetGameObject(
new GenTypeGameObject_LODGroup()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Animate Cross Fading");
return $"{this.m_LODGroup} {member}";
}
protected override bool Run(Args args)
{
LODGroup component = this.m_LODGroup.Get<LODGroup>(args);
if (component == null) return false;
return component.animateCrossFading;
}
}
}