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

Platform Effector 2D Use One Way#

Physics 2D / Effectors / Platform Effector 2D / Platform Effector 2D Use One Way

Description#

Compares the Use One Way property of Platform Effector 2D component to another value

Parameters#

Name Description
Platform 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("Platform Effector 2D Use One Way")]
    [Category("Physics 2D/Effectors/Platform Effector 2D/Use One Way")]
    [Description("Compares the Use One Way property of Platform Effector 2D component to another value")]
    
    [Image(typeof(IconPlatformEffector), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]
    
    [Parameter("Platform Effector 2D")]
    
    [Serializable]
    public class GenConditionBool_PlatformEffector2D_CheckUseOneWay : Condition
    {
        [SerializeField] private GetGameObject m_PlatformEffector2D = new GetGameObject(
            new GenTypeGameObject_PlatformEffector2D()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use One Way");
            return $"{this.m_PlatformEffector2D} {member}";
        }
        
        protected override bool Run(Args args)
        {
            PlatformEffector2D component = this.m_PlatformEffector2D.Get<PlatformEffector2D>(args);
            if (component == null) return false;
            
            return component.useOneWay;
        }
    }
}

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