diff --git a/Packages/manifest.json b/Packages/manifest.json index 1c33961..b9829e7 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,6 +1,7 @@ { "dependencies": { "com.coffee.development": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/Development", + "com.coffee.minimal-resource": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource", "com.coffee.nano-monitor": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor", "com.unity.ide.rider": "3.0.31", "com.unity.test-framework": "1.1.33", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 575c773..defda3e 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -5,7 +5,14 @@ "depth": 0, "source": "git", "dependencies": {}, - "hash": "4e5f735ccf956ee469b5014ae781068c49a2825d" + "hash": "52987fb6e66e7fc48498d8d164c3c8808de4de6b" + }, + "com.coffee.minimal-resource": { + "version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "52987fb6e66e7fc48498d8d164c3c8808de4de6b" }, "com.coffee.nano-monitor": { "version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor", @@ -14,7 +21,7 @@ "dependencies": { "com.unity.ugui": "1.0.0" }, - "hash": "4e5f735ccf956ee469b5014ae781068c49a2825d" + "hash": "52987fb6e66e7fc48498d8d164c3c8808de4de6b" }, "com.coffee.ui-particle": { "version": "file:src", diff --git a/Packages/src/Runtime/Coffee.UIParticle.R.dll b/Packages/src/Runtime/Coffee.UIParticle.R.dll new file mode 100644 index 0000000..de59dad Binary files /dev/null and b/Packages/src/Runtime/Coffee.UIParticle.R.dll differ diff --git a/Packages/src/Runtime/Coffee.UIParticle.R.dll.meta b/Packages/src/Runtime/Coffee.UIParticle.R.dll.meta new file mode 100644 index 0000000..fb448a1 --- /dev/null +++ b/Packages/src/Runtime/Coffee.UIParticle.R.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 4d73b3825bf044d418ae21bb331d3902 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/src/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs b/Packages/src/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs index 21ff15a..7f5326a 100644 --- a/Packages/src/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs +++ b/Packages/src/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs @@ -133,6 +133,8 @@ public abstract class PreloadedProjectSettings : PreloadedProjectSettings #if UNITY_EDITOR private string _jsonText; + public static bool hasInstance => s_Instance; + public static T instance { get diff --git a/Packages/src/Runtime/Internal/Utilities/MaterialRepository.cs b/Packages/src/Runtime/Internal/Utilities/MaterialRepository.cs index 7f15945..cd3c05e 100644 --- a/Packages/src/Runtime/Internal/Utilities/MaterialRepository.cs +++ b/Packages/src/Runtime/Internal/Utilities/MaterialRepository.cs @@ -15,7 +15,7 @@ internal static class MaterialRepository #if UNITY_EDITOR [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] - private static void Clear() + public static void Clear() { s_Repository.Clear(); } diff --git a/Packages/src/Runtime/Internal/Utilities/Misc.cs b/Packages/src/Runtime/Internal/Utilities/Misc.cs index 26c03cf..3f6fb47 100644 --- a/Packages/src/Runtime/Internal/Utilities/Misc.cs +++ b/Packages/src/Runtime/Internal/Utilities/Misc.cs @@ -69,6 +69,8 @@ public static T[] GetAllComponentsInPrefabStage() where T : Component return prefabStage.prefabContentsRoot.GetComponentsInChildren(true); } + + public static bool isBatchOrBuilding => Application.isBatchMode || BuildPipeline.isBuildingPlayer; #endif } } diff --git a/ProjectSettings/MinimalResourceSettings.json b/ProjectSettings/MinimalResourceSettings.json new file mode 100644 index 0000000..1203a9b --- /dev/null +++ b/ProjectSettings/MinimalResourceSettings.json @@ -0,0 +1,11 @@ +{ + "MonoBehaviour": { + "m_Enabled": true, + "m_EditorHideFlags": 0, + "m_Name": "", + "m_EditorClassIdentifier": "", + "m_OutputDllPaths": [ + "Packages/com.coffee.ui-particle/Runtime/Coffee.UIParticle.R.dll" + ] + } +} \ No newline at end of file