コード例 #1
0
        public VisitStatus Visit <TContainer>(Property <TContainer, float2x2> property, ref TContainer container, ref float2x2 value)
        {
            using (MakePathScope(property))
            {
                CustomEditorGUILayout.Vector2Label(GetDisplayName(property), value.c0, IsMixedValue("c0", value.c0));
                CustomEditorGUILayout.Vector2Label(GetEmptyNameForRow(), value.c1, IsMixedValue("c1", value.c1));
            }

            return(VisitStatus.Stop);
        }
コード例 #2
0
 public VisitStatus Visit <TContainer>(Property <TContainer, float2> property, ref TContainer container, ref float2 value)
 {
     CustomEditorGUILayout.Vector2Label(GetDisplayName(property), value, IsMixedValue(property.Name, value));
     return(VisitStatus.Stop);
 }