# Sprite Mask Is Custom Range Active

[Miscellaneous](../index.md) / [Sprite Mask](index.md) / **Sprite Mask Is Custom Range Active**

## Description

Compares the Is Custom Range Active property of Sprite Mask component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Sprite Mask |  |

## 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;

namespace VisualScript.Runtime
{
    [Title("Sprite Mask Is Custom Range Active")]
    [Category("Miscellaneous/Sprite Mask/Is Custom Range Active")]
    [Description("Compares the Is Custom Range Active property of Sprite Mask component to another value")]
    
    [Image(typeof(IconSprite), ColorTheme.Type.Purple, typeof(BadgeMinus))]
    
    [Parameter("Sprite Mask")]
    
    [Serializable]
    public class GenConditionBool_SpriteMask_CheckIsCustomRangeActive : Condition
    {
        [SerializeField] private GetGameObject m_SpriteMask = new GetGameObject(
            new GenTypeGameObject_SpriteMask()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Is Custom Range Active");
            return $"{this.m_SpriteMask} {member}";
        }
        
        protected override bool Run(Args args)
        {
            SpriteMask component = this.m_SpriteMask.Get<SpriteMask>(args);
            if (component == null) return false;
            
            return component.isCustomRangeActive;
        }
    }
}


```

