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

Callbacks On Disable#

Physics 2D / Callbacks On Disable

  • Can Read

  • Can Write

Description#

The Callbacks On Disable static property of the Physics 2D class

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
{
    [Get]
    [Set]

    [Title("Callbacks On Disable")]
    [Category("Physics 2D/Callbacks On Disable")]
    [Description("The Callbacks On Disable static property of the Physics 2D class")]

    [Image(typeof(IconPhysics), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]

    [Serializable]
    public class GenTypeBool_Physics2D_CallbacksOnDisable : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return Physics2D.callbacksOnDisable;
        }

        public override bool Get(Args args)
        {
            return Physics2D.callbacksOnDisable;
        }

        public override void Set(bool value, Args args)
        {
            Physics2D.callbacksOnDisable = (bool) value;
        }

        public override string ToString()
        {
            return $"Physics 2D Callbacks On Disable";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.