mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Cosmetic: fixed code formatting of previous commit.
This commit is contained in:
parent
580a91d8ee
commit
54fac9d8d0
@ -39,7 +39,7 @@ namespace Spine.Unity.Editor {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class TextureImporterUtility {
|
public static class TextureImporterUtility {
|
||||||
|
|
||||||
private static IEnumerable<string> GetAllPlatforms() {
|
private static IEnumerable<string> GetAllPlatforms () {
|
||||||
BuildTarget[] buildTargets = (BuildTarget[])Enum.GetValues(typeof(BuildTarget));
|
BuildTarget[] buildTargets = (BuildTarget[])Enum.GetValues(typeof(BuildTarget));
|
||||||
var platformNames = buildTargets.Select(x => x.ToString()).ToList();
|
var platformNames = buildTargets.Select(x => x.ToString()).ToList();
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ namespace Spine.Unity.Editor {
|
|||||||
/// <param name="disabledPlatforms">A list populated with platforms where overrides were previously enabled and
|
/// <param name="disabledPlatforms">A list populated with platforms where overrides were previously enabled and
|
||||||
/// which have now been disabled.</param>
|
/// which have now been disabled.</param>
|
||||||
/// <returns>True if an override has been disabled for any platform, false otherwise.</returns>
|
/// <returns>True if an override has been disabled for any platform, false otherwise.</returns>
|
||||||
public static bool DisableOverrides(TextureImporter importer, out List<string> disabledPlatforms) {
|
public static bool DisableOverrides (TextureImporter importer, out List<string> disabledPlatforms) {
|
||||||
IEnumerable<string> platforms = GetAllPlatforms();
|
IEnumerable<string> platforms = GetAllPlatforms();
|
||||||
disabledPlatforms = new List<string>();
|
disabledPlatforms = new List<string>();
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ namespace Spine.Unity.Editor {
|
|||||||
/// <summary>Enables Texture Import settings platform overrides for given platforms.</summary>
|
/// <summary>Enables Texture Import settings platform overrides for given platforms.</summary>
|
||||||
/// <param name="importer">The TextureImporter wrapper of the target texture asset.</param>
|
/// <param name="importer">The TextureImporter wrapper of the target texture asset.</param>
|
||||||
/// <param name="platformsToEnable">A list of platforms for which overrides shall be enabled.</param>
|
/// <param name="platformsToEnable">A list of platforms for which overrides shall be enabled.</param>
|
||||||
public static void EnableOverrides(TextureImporter importer, List<string> platformsToEnable) {
|
public static void EnableOverrides (TextureImporter importer, List<string> platformsToEnable) {
|
||||||
if (platformsToEnable.Count == 0)
|
if (platformsToEnable.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user