Added a unity editor script to toggle ragdoll via animation on your avatar

This commit is contained in:
kafeijao 2023-04-08 19:31:57 +01:00
parent 76f9244d9c
commit e426418806
No known key found for this signature in database
GPG key ID: E99978723E454B4C
6 changed files with 39 additions and 0 deletions

12
ml_prm/RagdollToggle.cs Normal file
View file

@ -0,0 +1,12 @@
using UnityEngine;
namespace ml_prm
{
public class RagdollToggle : MonoBehaviour
{
[Tooltip("Whether or not is should use the isOn property to override the current Ragdoll State of the Avatar.")]
[SerializeField] public bool shouldOverride;
[Tooltip("Whether Ragdoll State is active or not on the Avatar. Requires shouldOverride to be true to work.")]
[SerializeField] public bool isOn;
}
}