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

Line Renderer Generate Lighting Data#

Effects / Line Renderer / Line Renderer Generate Lighting Data

  • Can Read

  • Can Write

Description#

The Generate Lighting Data property of the Line 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
{
    [Get]
    [Set]
    
    [Title("Line Renderer Generate Lighting Data")]
    [Category("Effects/Line Renderer/Generate Lighting Data")]
    [Description("The Generate Lighting Data property of the Line Renderer component")]
    
    [Image(typeof(IconLineRenderer), ColorTheme.Type.Blue, typeof(BadgeEye))]
    [Keywords("Effect")]
    
    [Serializable]
    public class GenTypeBool_LineRenderer_GenerateLightingData : TypeBool
    {
        [SerializeField] private GetGameObject m_LineRenderer = new GetGameObject(
            new GenTypeGameObject_LineRenderer()
        );
        
        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_LineRenderer.GetPreview(source);
            if (instance == null) return default;
            
            LineRenderer component = instance.GetComponent<LineRenderer>();
            return component != null ? component.generateLightingData : default;
        }
        
        public override bool Get(Args args)
        {
            LineRenderer instance = this.m_LineRenderer.Get<LineRenderer>(args);
            return instance != null
                ? instance.generateLightingData
                : default;
        }
        
        public override void Set(bool value, Args args)
        {
            LineRenderer component = this.m_LineRenderer.Get<LineRenderer>(args);
            if (component != null) component.generateLightingData = (bool) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_LineRenderer} Generate Lighting Data";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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