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

Surface Effector 2D Use Bounce#

Physics 2D / Effectors / Surface Effector 2D / Surface Effector 2D Use Bounce

Description#

Compares the Use Bounce property of Surface Effector 2D component to another value

Parameters#

Name Description
Surface Effector 2D

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
{
    [Title("Surface Effector 2D Use Bounce")]
    [Category("Physics 2D/Effectors/Surface Effector 2D/Use Bounce")]
    [Description("Compares the Use Bounce property of Surface Effector 2D component to another value")]
    
    [Image(typeof(IconSurfaceEffector), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]
    
    [Parameter("Surface Effector 2D")]
    
    [Serializable]
    public class GenConditionBool_SurfaceEffector2D_CheckUseBounce : Condition
    {
        [SerializeField] private GetGameObject m_SurfaceEffector2D = new GetGameObject(
            new GenTypeGameObject_SurfaceEffector2D()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use Bounce");
            return $"{this.m_SurfaceEffector2D} {member}";
        }
        
        protected override bool Run(Args args)
        {
            SurfaceEffector2D component = this.m_SurfaceEffector2D.Get<SurfaceEffector2D>(args);
            if (component == null) return false;
            
            return component.useBounce;
        }
    }
}

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