remove old unity version support

This commit is contained in:
2018-10-27 01:13:51 +07:00
parent 5c88c96e3b
commit 6e7c85243e
5 changed files with 13 additions and 41 deletions

View File

@@ -1,4 +1,5 @@
###### Version 1.3.12 ###### Version 1.3.12
* Upgrade to minimal LTS version
* More readable conversion warnings * More readable conversion warnings
###### Version 1.3.11 ###### Version 1.3.11

View File

@@ -41,9 +41,7 @@ namespace FTEditor.Editors {
var clip_go = new GameObject(clip.name); var clip_go = new GameObject(clip.name);
clip_go.AddComponent<MeshFilter>(); clip_go.AddComponent<MeshFilter>();
clip_go.AddComponent<MeshRenderer>(); clip_go.AddComponent<MeshRenderer>();
#if UNITY_5_6_OR_NEWER
clip_go.AddComponent<SortingGroup>(); clip_go.AddComponent<SortingGroup>();
#endif
clip_go.AddComponent<SwfClip>().clip = clip; clip_go.AddComponent<SwfClip>().clip = clip;
clip_go.AddComponent<SwfClipController>(); clip_go.AddComponent<SwfClipController>();
return clip_go; return clip_go;

View File

@@ -206,11 +206,7 @@ namespace FTEditor.Postprocessors {
atlas_importer.spritePixelsPerUnit = asset.Settings.PixelsPerUnit; atlas_importer.spritePixelsPerUnit = asset.Settings.PixelsPerUnit;
atlas_importer.mipmapEnabled = asset.Settings.GenerateMipMaps; atlas_importer.mipmapEnabled = asset.Settings.GenerateMipMaps;
atlas_importer.filterMode = SwfAtlasFilterToImporterFilter(asset.Settings.AtlasTextureFilter); atlas_importer.filterMode = SwfAtlasFilterToImporterFilter(asset.Settings.AtlasTextureFilter);
#if UNITY_5_5_OR_NEWER
atlas_importer.textureCompression = SwfAtlasFormatToImporterCompression(asset.Settings.AtlasTextureFormat); atlas_importer.textureCompression = SwfAtlasFormatToImporterCompression(asset.Settings.AtlasTextureFormat);
#else
atlas_importer.textureFormat = SwfAtlasFormatToImporterFormat(asset.Settings.AtlasTextureFormat);
#endif
var atlas_settings = new TextureImporterSettings(); var atlas_settings = new TextureImporterSettings();
atlas_importer.ReadTextureSettings(atlas_settings); atlas_importer.ReadTextureSettings(atlas_settings);
@@ -248,7 +244,6 @@ namespace FTEditor.Postprocessors {
} }
} }
#if UNITY_5_5_OR_NEWER
static TextureImporterCompression SwfAtlasFormatToImporterCompression( static TextureImporterCompression SwfAtlasFormatToImporterCompression(
SwfSettingsData.AtlasFormat format) SwfSettingsData.AtlasFormat format)
{ {
@@ -263,22 +258,6 @@ namespace FTEditor.Postprocessors {
format)); format));
} }
} }
#else
static TextureImporterFormat SwfAtlasFormatToImporterFormat(
SwfSettingsData.AtlasFormat format)
{
switch ( format ) {
case SwfSettingsData.AtlasFormat.AutomaticCompressed:
return TextureImporterFormat.AutomaticCompressed;
case SwfSettingsData.AtlasFormat.AutomaticTruecolor:
return TextureImporterFormat.AutomaticTruecolor;
default:
throw new UnityException(string.Format(
"incorrect swf atlas format ({0})",
format));
}
}
#endif
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
// //

View File

@@ -4,18 +4,12 @@ using FTRuntime.Internal;
namespace FTRuntime { namespace FTRuntime {
[ExecuteInEditMode, DisallowMultipleComponent] [ExecuteInEditMode, DisallowMultipleComponent]
#if UNITY_5_6_OR_NEWER
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(SortingGroup))] [RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(SortingGroup))]
#else
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
#endif
public class SwfClip : MonoBehaviour { public class SwfClip : MonoBehaviour {
MeshFilter _meshFilter = null; MeshFilter _meshFilter = null;
MeshRenderer _meshRenderer = null; MeshRenderer _meshRenderer = null;
#if UNITY_5_6_OR_NEWER
SortingGroup _sortingGroup = null; SortingGroup _sortingGroup = null;
#endif
bool _dirtyMesh = true; bool _dirtyMesh = true;
SwfClipAsset.Sequence _curSequence = null; SwfClipAsset.Sequence _curSequence = null;
@@ -312,9 +306,7 @@ namespace FTRuntime {
void ClearCache(bool allow_to_create_components) { void ClearCache(bool allow_to_create_components) {
_meshFilter = SwfUtils.GetComponent<MeshFilter> (gameObject, allow_to_create_components); _meshFilter = SwfUtils.GetComponent<MeshFilter> (gameObject, allow_to_create_components);
_meshRenderer = SwfUtils.GetComponent<MeshRenderer>(gameObject, allow_to_create_components); _meshRenderer = SwfUtils.GetComponent<MeshRenderer>(gameObject, allow_to_create_components);
#if UNITY_5_6_OR_NEWER
_sortingGroup = SwfUtils.GetComponent<SortingGroup>(gameObject, allow_to_create_components); _sortingGroup = SwfUtils.GetComponent<SortingGroup>(gameObject, allow_to_create_components);
#endif
_dirtyMesh = true; _dirtyMesh = true;
_curSequence = null; _curSequence = null;
_curPropBlock = null; _curPropBlock = null;
@@ -375,12 +367,10 @@ namespace FTRuntime {
_meshRenderer.sortingOrder = sortingOrder; _meshRenderer.sortingOrder = sortingOrder;
_meshRenderer.sortingLayerName = sortingLayer; _meshRenderer.sortingLayerName = sortingLayer;
} }
#if UNITY_5_6_OR_NEWER
if ( _sortingGroup ) { if ( _sortingGroup ) {
_sortingGroup.sortingOrder = sortingOrder; _sortingGroup.sortingOrder = sortingOrder;
_sortingGroup.sortingLayerName = sortingLayer; _sortingGroup.sortingLayerName = sortingLayer;
} }
#endif
} }
void UpdatePropBlock() { void UpdatePropBlock() {

View File

@@ -47,14 +47,13 @@ https://github.com/MattRix/UnityDecompiled/blob/master/UnityEditor/UnityEditor/P
**** Нужен ворнинг на использование флеш-ide старой версии **** Нужен ворнинг на использование флеш-ide старой версии
**** Возможность конфигурировать параметры групп в редакторе, а не только в рантайме **** Возможность конфигурировать параметры групп в редакторе, а не только в рантайме
https://gist.github.com/talecrafter/111ea3345911bd238f4998b4d5a04bf3 https://gist.github.com/talecrafter/111ea3345911bd238f4998b4d5a04bf3
** TODO Версия 1.3.12 ** TODO Версия 1.3.13
*** Общее *** Общее
**** TODO Написать гайд по качеству выгружаемых анимаций **** TODO Написать гайд по качеству выгружаемых анимаций
**** TODO Гайд по использованию ETC1 текстур для анимаций **** TODO Гайд по использованию ETC1 текстур для анимаций
*** Улучшения *** Улучшения
**** TODO Сделать возможность задавать локальные настройки для папки, а не только глобальные **** TODO Сделать возможность задавать локальные настройки для папки, а не только глобальные
**** TODO Note на ассет когда текстура сжата до максимального размера **** TODO Note на ассет когда текстура сжата до максимального размера
**** DONE У ворнингов конверта нет контекста
**** TODO Поддержка юнити-атласов **** TODO Поддержка юнити-атласов
**** TODO Поддержка задавать теги и сплит текстур на альфу для etc **** TODO Поддержка задавать теги и сплит текстур на альфу для etc
**** TODO Отдельный пакет ассета для возможности проигрывать анимации, без экспорта **** TODO Отдельный пакет ассета для возможности проигрывать анимации, без экспорта
@@ -69,6 +68,11 @@ https://gist.github.com/talecrafter/111ea3345911bd238f4998b4d5a04bf3
**** TODO Возможно проблемы с DX9 **** TODO Возможно проблемы с DX9
UNITY_UV_STARTS_AT_TOP UNITY_UV_STARTS_AT_TOP
UNITY_HALF_TEXEL_OFFSET UNITY_HALF_TEXEL_OFFSET
** DONE Версия 1.3.12
*** Общее
**** DONE Минимальная версия 2017 LTS
*** Улучшения
**** DONE У ворнингов конверта нет контекста
** DONE Версия 1.3.11 ** DONE Версия 1.3.11
*** Баги *** Баги
**** DONE Триальная версия не поддерживает Unity 2017 **** DONE Триальная версия не поддерживает Unity 2017