Ejemplo n.º 1
0
        /// <summary>
        ///     Draws the content.
        /// </summary>
        /// <param name="position">Position.</param>
        /// <param name="locked">Locked.</param>
        protected override void DrawContent(Rect position, bool locked)
        {
            if (locked)
            {
                HydraEditorUtils.DrawUnindented(
                    () => HydraEditorUtils.UniformVector3Field(position, GUIContent.none, m_VectorProperty));
                return;
            }

            HydraEditorUtils.DrawUnindented(() => HydraEditorUtils.Vector3Field(position, GUIContent.none, m_VectorProperty));
        }