---
tags:
    - "Physics, 3D, Kinematic"
---

# Character Controller Step Offset

[Physics 3D](../../index.md) / [Collider](../index.md) / [Character Controller](index.md) / **Character Controller Step Offset**

## Description

Compares the Step Offset property of Character Controller component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Character Controller |  |
| Compare |  |
| Value |  |

## 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("Character Controller Step Offset")]
    [Category("Physics 3D/Collider/Character Controller/Step Offset")]
    [Description("Compares the Step Offset property of Character Controller component to another value")]
    
    [Image(typeof(IconCapsuleSolid), ColorTheme.Type.Lime, typeof(BadgeCharacter))]
    [Keywords("Physics, 3D, Kinematic")]
    
    [Parameter("Character Controller")]
    [Parameter("Compare")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionNumber_CharacterController_CheckStepOffset : Condition
    {
        [SerializeField] private GetGameObject m_CharacterController = new GetGameObject(
            new GenTypeGameObject_CharacterController()
        );
        
        [SerializeField] private CompareNumber m_Compare = new CompareNumber();
        
        [SerializeField] private GetNumber m_Value = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Step Offset");
            return $"{this.m_CharacterController} {member} {this.m_Compare} {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            CharacterController component = this.m_CharacterController.Get<CharacterController>(args);
            if (component == null) return false;
            
            return this.m_Compare.Compare(component.stepOffset, (float) this.m_Value.Get(args));
        }
    }
}


```

