Canvas Renderer Get Secondary Texture Count#
Rendering / Canvas Renderer / Canvas Renderer Get Secondary Texture Count
Can Read
Cannot Write
Description#
Returns the execution of Get Secondary Texture Count method on the Canvas 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;
using UnityEngine.Rendering;
namespace VisualScript.Runtime
{
[Get]
[Title("Canvas Renderer Get Secondary Texture Count")]
[Category("Rendering/Canvas Renderer/Get Secondary Texture Count")]
[Description("Returns the execution of Get Secondary Texture Count method on the Canvas Renderer component")]
[Image(typeof(IconEye), ColorTheme.Type.TextLight)]
[Serializable]
public class GenTypeInteger_CanvasRenderer_GetSecondaryTextureCount_0 : TypeNumber
{
[SerializeField] private GetGameObject m_CanvasRenderer = new GetGameObject(
new GenTypeGameObject_CanvasRenderer()
);
public override double Get(Args args)
{
CanvasRenderer component = this.m_CanvasRenderer.Get<CanvasRenderer>(args);
if (component == null) return default;
double value = (double) component.GetSecondaryTextureCount();
return value;
}
public override string ToString()
{
return $"{this.m_CanvasRenderer} Get Secondary Texture Count";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}