implementation of drecon in unity 2022 lts
forked from:
https://github.com/joanllobera/marathon-envs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
712 B
53 lines
712 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
[CustomEditor(typeof(Muscles))]
|
|
public class MusclesEditor : Editor
|
|
{
|
|
|
|
[SerializeField]
|
|
SerializedProperty Muscles;
|
|
|
|
void OnEnable()
|
|
{
|
|
Muscles = serializedObject.FindProperty("Muscles");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
serializedObject.Update();
|
|
|
|
|
|
GUILayout.Label("");
|
|
|
|
|
|
|
|
|
|
base.OnInspectorGUI();
|
|
|
|
/*
|
|
if (GUILayout.Button("Recalculate Center of Masses"))
|
|
{
|
|
Muscles t = target as Muscles;
|
|
t.CenterABMasses();
|
|
}*/
|
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|