protected static void Copy(SerializedProperty prop) { m_Copy = new ColorBlockExtended(); m_Copy.normalColor = prop.FindPropertyRelative("m_NormalColor").colorValue; m_Copy.highlightedColor = prop.FindPropertyRelative("m_HighlightedColor").colorValue; m_Copy.pressedColor = prop.FindPropertyRelative("m_PressedColor").colorValue; m_Copy.activeColor = prop.FindPropertyRelative("m_ActiveColor").colorValue; m_Copy.activeHighlightedColor = prop.FindPropertyRelative("m_ActiveHighlightedColor").colorValue; m_Copy.activePressedColor = prop.FindPropertyRelative("m_ActivePressedColor").colorValue; m_Copy.disabledColor = prop.FindPropertyRelative("m_DisabledColor").colorValue; m_Copy.colorMultiplier = prop.FindPropertyRelative("m_ColorMultiplier").floatValue; m_Copy.fadeDuration = prop.FindPropertyRelative("m_FadeDuration").floatValue; m_HasCopy = true; }
protected static void Copy(SerializedProperty prop) { m_Copy = new ColorBlockExtended(); m_Copy.normalColor = prop.FindPropertyRelative("m_NormalColor").colorValue; m_Copy.highlightedColor = prop.FindPropertyRelative("m_HighlightedColor").colorValue; m_Copy.pressedColor = prop.FindPropertyRelative("m_PressedColor").colorValue; m_Copy.activeColor = prop.FindPropertyRelative("m_ActiveColor").colorValue; m_Copy.activeHighlightedColor = prop.FindPropertyRelative("m_ActiveHighlightedColor").colorValue; m_Copy.activePressedColor = prop.FindPropertyRelative("m_ActivePressedColor").colorValue; m_Copy.disabledColor = prop.FindPropertyRelative("m_DisabledColor").colorValue; m_Copy.colorMultiplier = prop.FindPropertyRelative("m_ColorMultiplier").floatValue; m_Copy.fadeDuration = prop.FindPropertyRelative("m_FadeDuration").floatValue; m_HasCopy = true; }