multiple xr toolkit package
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.

VRCObjectSyncEditor.cs 597B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEditor;
  4. using System;
  5. [CustomEditor(typeof(VRCSDK2.VRC_ObjectSync))]
  6. public class VRCObjectSyncEditor : Editor
  7. {
  8. VRCSDK2.VRC_ObjectSync sync;
  9. void OnEnable()
  10. {
  11. if (sync == null)
  12. sync = (VRCSDK2.VRC_ObjectSync)target;
  13. }
  14. public override void OnInspectorGUI()
  15. {
  16. sync.SynchronizePhysics = EditorGUILayout.Toggle("Synchronize Physics",sync.SynchronizePhysics);
  17. sync.AllowCollisionTransfer = EditorGUILayout.Toggle("Allow Collision Transfer", sync.AllowCollisionTransfer);
  18. }
  19. }