Tilemap Renderer Chunk Culling Bounds#
Tilemap / Tilemap Renderer / Tilemap Renderer Chunk Culling Bounds
Description#
Compares the Chunk Culling Bounds property of Tilemap Renderer component to another value
Parameters#
| Name | Description |
|---|---|
| Tilemap 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;
using UnityEngine.Tilemaps;
namespace VisualScript.Runtime
{
[Title("Tilemap Renderer Chunk Culling Bounds")]
[Category("Tilemap/Tilemap Renderer/Chunk Culling Bounds")]
[Description("Compares the Chunk Culling Bounds property of Tilemap Renderer component to another value")]
[Image(typeof(IconTilemap), ColorTheme.Type.Purple, typeof(BadgeEye))]
[Keywords("Tile, Map")]
[Parameter("Tilemap Renderer")]
[Parameter("Value")]
[Serializable]
public class GenConditionVector3_TilemapRenderer_CheckChunkCullingBounds : Condition
{
[SerializeField] private GetGameObject m_TilemapRenderer = new GetGameObject(
new GenTypeGameObject_TilemapRenderer()
);
[SerializeField] private GetVector3 m_Value = new GetVector3();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Chunk Culling Bounds");
return $"{this.m_TilemapRenderer} {member} = {this.m_Value}";
}
protected override bool Run(Args args)
{
TilemapRenderer component = this.m_TilemapRenderer.Get<TilemapRenderer>(args);
if (component == null) return false;
return component.chunkCullingBounds == (Vector3) this.m_Value.Get(args);
}
}
}