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