Bounce Threshold#
Physics / Bounce Threshold
Can Read
Can Write
Description#
The Bounce Threshold static property of the Physics 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("Bounce Threshold")]
[Category("Physics/Bounce Threshold")]
[Description("The Bounce Threshold static property of the Physics class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Serializable]
public class GenTypeNumber_Physics_BounceThreshold : TypeNumber
{
public override double GetPreview(GameObject source)
{
return Physics.bounceThreshold;
}
public override double Get(Args args)
{
return Physics.bounceThreshold;
}
public override void Set(double value, Args args)
{
Physics.bounceThreshold = (float) value;
}
public override string ToString()
{
return $"Physics Bounce Threshold";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}