Renderer Has Property Block#
Mesh / Renderer / Renderer Has Property Block
Description#
Compares the Has Property Block method of Renderer component to another value
Parameters#
| Name | Description |
|---|---|
| Renderer |
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("Renderer Has Property Block")]
[Category("Mesh/Renderer/Has Property Block")]
[Description("Compares the Has Property Block method of Renderer component to another value")]
[Image(typeof(IconMesh), ColorTheme.Type.Blue)]
[Parameter("Renderer")]
[Serializable]
public class GenConditionBool_Renderer_CheckHasPropertyBlock_0 : Condition
{
[SerializeField] private GetGameObject m_Renderer = new GetGameObject(
new GenTypeGameObject_Renderer()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Has Property Block");
string parameters = $"()";
return $"{this.m_Renderer} {method}";
}
protected override bool Run(Args args)
{
Renderer component = this.m_Renderer.Get<Renderer>(args);
if (component == null) return false;
bool value = component.HasPropertyBlock();
return value;
}
}
}