Skip to content

Commit ffefcfa

Browse files
committed
Add define for IStyleExtensions
1 parent 2866490 commit ffefcfa

File tree

1 file changed

+2
-0
lines changed
  • Aspid.UnityFastTools/Assets/Plugins/Aspid/UnityFastTools/Source/Runtime/VisualElements/Extensions

1 file changed

+2
-0
lines changed

Aspid.UnityFastTools/Assets/Plugins/Aspid/UnityFastTools/Source/Runtime/VisualElements/Extensions/IStyleExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,14 @@ public static T SetUnitySlice<T>(this T style,
566566
return style;
567567
}
568568

569+
#if UNITY_6000_0_OR_NEWER
569570
public static T SetUnitySliceType<T>(this T style, StyleEnum<SliceType> value)
570571
where T : IStyle
571572
{
572573
style.unitySliceType = value;
573574
return style;
574575
}
576+
#endif
575577
#endregion
576578

577579
#region Visibility

0 commit comments

Comments
 (0)