update CCK to 3.10, fixing unity 2021 crash :)
This commit is contained in:
parent
48a978fa2a
commit
d11e0fb3a9
492 changed files with 2165204 additions and 437687 deletions
|
@ -0,0 +1,68 @@
|
|||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using static ABI.CCK.Scripts.Editor.SharedComponentGUI;
|
||||
|
||||
namespace ABI.CCK.Components
|
||||
{
|
||||
[CanEditMultipleObjects]
|
||||
[CustomEditor(typeof(CVRAdvancedAvatarSettingsTriggerHelper))]
|
||||
public class CCK_CVRAdvancedAvatarSettingsTriggerHelperEditor : Editor
|
||||
{
|
||||
private CVRAdvancedAvatarSettingsTriggerHelper _triggerHelper;
|
||||
|
||||
private SerializedProperty m_TriggersProp;
|
||||
|
||||
#region Unity Events
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (target == null) return;
|
||||
_triggerHelper = (CVRAdvancedAvatarSettingsTriggerHelper)target;
|
||||
|
||||
//m_TriggersProp = serializedObject.FindProperty(nameof(CVRAdvancedAvatarSettingsTriggerHelper.triggers));
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
if (_triggerHelper == null)
|
||||
return;
|
||||
|
||||
serializedObject.Update();
|
||||
|
||||
// helpbox stating this component is deprecated
|
||||
EditorGUILayout.HelpBox("This component is deprecated. Similar functionality may be achieved using the new Animator Driver StateBehaviour.", MessageType.Warning);
|
||||
|
||||
//Draw_Info();
|
||||
//Draw_HelperTriggers();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Drawing Methods
|
||||
|
||||
private void Draw_Info()
|
||||
{
|
||||
EditorGUILayout.HelpBox("For use with Animation Events. Allows you to call OnEnter, OnExit, and OnStay on any trigger in this list.", MessageType.Info);
|
||||
}
|
||||
|
||||
private void Draw_HelperTriggers()
|
||||
{
|
||||
using (new LabelScope("Trigger References"))
|
||||
DrawHelperTriggers();
|
||||
}
|
||||
|
||||
private void DrawHelperTriggers()
|
||||
{
|
||||
GUILayout.BeginVertical();
|
||||
//Separator();
|
||||
using (new EditorGUI.IndentLevelScope()) EditorGUILayout.PropertyField(m_TriggersProp, new GUIContent("Triggers"));
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 20a4a948606a9b847bc99b59a6ecedf9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue