Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Sorting Group Sorting Layer Name#

Rendering / Sorting Group / Sorting Group Sorting Layer Name

Description#

Compares the Sorting Layer Name property of Sorting Group component to another value

Parameters#

Name Description
Sorting Group
Value

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 Sorting Layer Name")]
    [Category("Rendering/Sorting Group/Sorting Layer Name")]
    [Description("Compares the Sorting Layer Name property of Sorting Group component to another value")]
    
    [Image(typeof(IconSortingGroup), ColorTheme.Type.Purple)]
    
    [Parameter("Sorting Group")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionString_SortingGroup_CheckSortingLayerName : Condition
    {
        [SerializeField] private GetGameObject m_SortingGroup = new GetGameObject(
            new GenTypeGameObject_SortingGroup()
        );
        
        [SerializeField] private GetString m_Value = new GetString();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Sorting Layer Name");
            return $"{this.m_SortingGroup} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            SortingGroup component = this.m_SortingGroup.Get<SortingGroup>(args);
            if (component == null) return false;
            
            return component.sortingLayerName == (string) this.m_Value.Get(args);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.