---
tags:
    - "UI, Layout"
---

# Canvas Group Blocks Raycasts

[UI](../../index.md) / [Layout](../index.md) / [Canvas Group](index.md) / **Canvas Group Blocks Raycasts**

## Description

Compares the Blocks Raycasts property of Canvas Group component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Canvas Group |  |

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

namespace VisualScript.Runtime
{
    [Title("Canvas Group Blocks Raycasts")]
    [Category("UI/Layout/Canvas Group/Blocks Raycasts")]
    [Description("Compares the Blocks Raycasts property of Canvas Group component to another value")]
    
    [Image(typeof(IconCanvasGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Parameter("Canvas Group")]
    
    [Serializable]
    public class GenConditionBool_CanvasGroup_CheckBlocksRaycasts : Condition
    {
        [SerializeField] private GetGameObject m_CanvasGroup = new GetGameObject(
            new GenTypeGameObject_CanvasGroup()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Blocks Raycasts");
            return $"{this.m_CanvasGroup} {member}";
        }
        
        protected override bool Run(Args args)
        {
            CanvasGroup component = this.m_CanvasGroup.Get<CanvasGroup>(args);
            if (component == null) return false;
            
            return component.blocksRaycasts;
        }
    }
}


```

