コード例 #1
0
        protected override void OnDrawPropertys()
        {
            base.OnDrawPropertys();

            if (selected == 0)
            {
                using (var hor = new EditorGUILayout.HorizontalScope())
                {
                    GUILayout.FlexibleSpace();
                    if (GUILayout.Button("坐标坍缩", EditorStyles.miniButtonRight, GUILayout.Width(100)))
                    {
                        LinkUtil.Clamp(targetItem.transform);
                    }
                }
            }
        }