Renderer Has Property Block#
Mesh / Renderer / Renderer Has Property Block
Can Read
Cannot Write
Description#
Returns the execution of Has Property Block method on the Renderer component
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
{
[Get]
[Title("Renderer Has Property Block")]
[Category("Mesh/Renderer/Has Property Block")]
[Description("Returns the execution of Has Property Block method on the Renderer component")]
[Image(typeof(IconMesh), ColorTheme.Type.Blue)]
[Serializable]
public class GenTypeBool_Renderer_HasPropertyBlock_0 : TypeBool
{
[SerializeField] private GetGameObject m_Renderer = new GetGameObject(
new GenTypeGameObject_Renderer()
);
public override bool Get(Args args)
{
Renderer component = this.m_Renderer.Get<Renderer>(args);
if (component == null) return default;
bool value = (bool) component.HasPropertyBlock();
return value;
}
public override string ToString()
{
return $"{this.m_Renderer} Has Property Block";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}