Netcode Bootstrap

This commit is contained in:
Luis Gonzalez
2026-05-31 14:27:52 -07:00
parent 99d8d2d2a9
commit 7fa77ce821
1813 changed files with 2921554 additions and 84 deletions
@@ -0,0 +1,30 @@
using Rukhanka.Hybrid;
using UnityEditor;
using UnityEngine.UIElements;
////////////////////////////////////////////////////////////////////////////////////////
namespace Rukhanka.Editor
{
[CustomEditor(typeof(GPUAttachmentAuthoring))]
public class GPUAttachmentAuthoringEditor : UnityEditor.Editor
{
public VisualTreeAsset inspectorXML;
VisualElement attachedBoneIndexField;
VisualElement inspector;
////////////////////////////////////////////////////////////////////////////////////////
public override VisualElement CreateInspectorGUI()
{
inspector = new VisualElement();
inspectorXML.CloneTree(inspector);
attachedBoneIndexField = inspector.Q("attachedBoneIndex");
var go = serializedObject.targetObject as GPUAttachmentAuthoring;
var isChildOfRig = go.GetComponentInParent<RigDefinitionAuthoring>() != null;
attachedBoneIndexField.style.display = isChildOfRig ? DisplayStyle.None : DisplayStyle.Flex;
return inspector;
}
}
}