Sorting Group Update All Sorting Groups#
Rendering / Sorting Group / Sorting Group Update All Sorting Groups
Description#
Executes the Update All Sorting Groups static method of the Sorting Group class
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
{
[Title("Sorting Group Update All Sorting Groups")]
[Category("Rendering/Sorting Group/Update All Sorting Groups")]
[Description("Executes the Update All Sorting Groups static method of the Sorting Group class")]
[Image(typeof(IconSortingGroup), ColorTheme.Type.Purple)]
[Serializable]
public class GenInstructionSortingGroup_UpdateAllSortingGroups_0 : Instruction
{
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Sorting Group");
string method = TextUtils.ThemeAsKeyword("Update All Sorting Groups");
return $"{className} {method}";
}
protected override Awaitable Run(Args args)
{
SortingGroup.UpdateAllSortingGroups();
return Done;
}
}
}