Renderer Reset Local Bounds#
Mesh / Renderer / Renderer Reset Local Bounds
Description#
Executes the Reset Local Bounds 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
{
[Title("Renderer Reset Local Bounds")]
[Category("Mesh/Renderer/Reset Local Bounds")]
[Description("Executes the Reset Local Bounds method on the Renderer component")]
[Image(typeof(IconMesh), ColorTheme.Type.Blue)]
[Serializable]
public class GenInstructionRenderer_ResetLocalBounds_0 : Instruction
{
[SerializeField] private GetGameObject m_Renderer = new GetGameObject(
new GenTypeGameObject_Renderer()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Reset Local Bounds");
return $"{this.m_Renderer} {method}";
}
protected override Awaitable Run(Args args)
{
Renderer component = this.m_Renderer.Get<Renderer>(args);
if (component == null) return Done;
component.ResetLocalBounds();
return Done;
}
}
}