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

Skybox Material#

Rendering / Skybox / Skybox Material

  • Can Read

  • Can Write

Description#

The Material property of the Skybox 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.Rendering;

namespace VisualScript.Runtime
{
    [Get]
    [Set]
    
    [Title("Skybox Material")]
    [Category("Rendering/Skybox/Material")]
    [Description("The Material property of the Skybox component")]
    
    [Image(typeof(IconCloudSolid), ColorTheme.Type.Blue)]
    
    [Serializable]
    public class GenTypeMaterial_Skybox_Material : TypeMaterial
    {
        [SerializeField] private GetGameObject m_Skybox = new GetGameObject(
            new GenTypeGameObject_Skybox()
        );
        
        public override Material GetPreview(GameObject source)
        {
            GameObject instance = this.m_Skybox.GetPreview(source);
            if (instance == null) return default;
            
            Skybox component = instance.GetComponent<Skybox>();
            return component != null ? component.material : default;
        }
        
        public override Material Get(Args args)
        {
            Skybox instance = this.m_Skybox.Get<Skybox>(args);
            return instance != null
                ? instance.material
                : default;
        }
        
        public override void Set(Material value, Args args)
        {
            Skybox component = this.m_Skybox.Get<Skybox>(args);
            if (component != null) component.material = (Material) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_Skybox} Material";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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