# LOD Group Animate Cross Fading

[Rendering](../index.md) / [LOD Group](index.md) / **LOD Group Animate Cross Fading**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Animate Cross Fading property of the LOD Group component

## Code

```cs
// <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("LOD Group Animate Cross Fading")]
    [Category("Rendering/LOD Group/Animate Cross Fading")]
    [Description("The Animate Cross Fading property of the LOD Group component")]
    
    [Image(typeof(IconLOD), ColorTheme.Type.Blue)]
    
    [Serializable]
    public class GenTypeBool_LODGroup_AnimateCrossFading : TypeBool
    {
        [SerializeField] private GetGameObject m_LODGroup = new GetGameObject(
            new GenTypeGameObject_LODGroup()
        );
        
        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_LODGroup.GetPreview(source);
            if (instance == null) return default;
            
            LODGroup component = instance.GetComponent<LODGroup>();
            return component != null ? component.animateCrossFading : default;
        }
        
        public override bool Get(Args args)
        {
            LODGroup instance = this.m_LODGroup.Get<LODGroup>(args);
            return instance != null
                ? instance.animateCrossFading
                : default;
        }
        
        public override void Set(bool value, Args args)
        {
            LODGroup component = this.m_LODGroup.Get<LODGroup>(args);
            if (component != null) component.animateCrossFading = (bool) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_LODGroup} Animate Cross Fading";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

