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

Visual Effect Get Skinned Mesh Renderer#

Effects / Visual Effect / Visual Effect Get Skinned Mesh Renderer Name

  • Can Read

  • Cannot Write

Description#

Returns the execution of Get Skinned Mesh Renderer 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 Skinned Mesh Renderer")]
    [Category("Effects/Visual Effect/Get Skinned Mesh Renderer", "Name")]
    [Description("Returns the execution of Get Skinned Mesh Renderer method on the Visual Effect component")]
    
    [Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
    [Keywords("Effect")]
    
    [Serializable]
    public class GenTypeGameObject_VisualEffect_GetSkinnedMeshRenderer_1_StringName : TypeGameObject
    {
        [SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
            new GenTypeGameObject_VisualEffect()
        );
        
        [SerializeField] private GetString m_Name = new GetString();
        
        public override GameObject Get(Args args)
        {
            VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
            if (component == null) return default;
            
            SkinnedMeshRenderer value = (SkinnedMeshRenderer) component.GetSkinnedMeshRenderer(
                (string) this.m_Name.Get(args)
            );
            
            return value != null ? value.gameObject : null;
        }
        
        public override U Get<U>(Args args)
        {
            if (typeof(U) == typeof(SkinnedMeshRenderer))
            {
                VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
                if (component == null) return default;
                
                return component.GetSkinnedMeshRenderer(
                    (string) this.m_Name.Get(args)
                ) as U;
            }
            
            return base.Get<U>(args);
        }
        
        public override string ToString()
        {
            return $"{this.m_VisualEffect} Get Skinned Mesh Renderer ({this.m_Name})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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