Visual Effect Get U Int#
Effects / Visual Effect / Visual Effect Get U Int NameID
Can Read
Cannot Write
Description#
Returns the execution of Get U Int method on the Visual Effect 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.VFX;
namespace VisualScript.Runtime
{
[Get]
[Title("Visual Effect Get U Int")]
[Category("Effects/Visual Effect/Get U Int", "NameID")]
[Description("Returns the execution of Get U Int method on the Visual Effect component")]
[Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
[Keywords("Effect")]
[Serializable]
public class GenTypeInteger_VisualEffect_GetUInt_1_IntNameID : TypeNumber
{
[SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
new GenTypeGameObject_VisualEffect()
);
[SerializeField] private GetInteger m_NameID = new GetInteger();
public override double Get(Args args)
{
VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
if (component == null) return default;
double value = (double) component.GetUInt(
(int) this.m_NameID.Get(args)
);
return value;
}
public override string ToString()
{
return $"{this.m_VisualEffect} Get U Int ({this.m_NameID})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}