Occlusion Area Size#
Rendering / Occlusion Area / Occlusion Area Size
Description#
Compares the Size property of Occlusion Area component to another value
Parameters#
| Name | Description |
|---|---|
| Occlusion Area | |
| 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("Occlusion Area Size")]
[Category("Rendering/Occlusion Area/Size")]
[Description("Compares the Size property of Occlusion Area component to another value")]
[Image(typeof(IconOcclusionArea), ColorTheme.Type.Teal)]
[Parameter("Occlusion Area")]
[Parameter("Value")]
[Serializable]
public class GenConditionVector3_OcclusionArea_CheckSize : Condition
{
[SerializeField] private GetGameObject m_OcclusionArea = new GetGameObject(
new GenTypeGameObject_OcclusionArea()
);
[SerializeField] private GetVector3 m_Value = new GetVector3();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Size");
return $"{this.m_OcclusionArea} {member} = {this.m_Value}";
}
protected override bool Run(Args args)
{
OcclusionArea component = this.m_OcclusionArea.Get<OcclusionArea>(args);
if (component == null) return false;
return component.size == (Vector3) this.m_Value.Get(args);
}
}
}