//----------------------------------------------------------------------- // // Copyright (c) Sirenix IVS. All rights reserved. // //----------------------------------------------------------------------- #if UNITY_EDITOR && !UNITY_2019_1_OR_NEWER #pragma warning disable 0618 namespace Sirenix.OdinInspector.Editor.Drawers { using Sirenix.Utilities; using UnityEditor; using UnityEngine; using UnityEngine.Networking; /// /// SyncVar attribute drawer. /// public class SyncVarAttributeDrawer : OdinAttributeDrawer { /// /// Draws the property. /// protected override void DrawPropertyLayout(GUIContent label) { GUILayout.BeginHorizontal(); { GUILayout.BeginVertical(); { this.CallNextDrawer(label); } GUILayout.EndVertical(); GUILayout.Label("SyncVar", EditorStyles.miniLabel, GUILayoutOptions.Width(52f)); } GUILayout.EndHorizontal(); } } } #endif // UNITY_EDITOR && !UNITY_2019_1_OR_NEWER