Compare commits

..

10 Commits
0.5.21 ... main

Author SHA1 Message Date
Mikhail
8e38cecf19 up version 0.6.0 2026-04-21 15:19:36 +08:00
Mikhail
da16b02fe9 up version 0.5.25 2026-04-20 21:50:23 +08:00
Mikhail
1efdce2c70 fix 2026-04-20 21:38:06 +08:00
Mikhail
dd1748efaa fix 2026-04-20 21:09:15 +08:00
Mikhail
7e0343f8d1 up version 0.5.24 2026-04-20 21:02:39 +08:00
Mikhail
951213e339 fix 2026-04-20 21:02:09 +08:00
Mikhail
3509552c89 up version 0.5.23 2026-04-20 20:41:17 +08:00
Mikhail
c21cce34b1 fix 2026-04-20 20:40:46 +08:00
Mikhail
8ea93f4405 up version 0.5.22 2026-04-20 19:38:36 +08:00
Mikhail
1d2e2b4a3f fix 2026-04-20 19:38:09 +08:00
7 changed files with 19 additions and 9 deletions

View File

@ -68,7 +68,7 @@
Семантика версионирования - [Открыть](https://gist.github.com/DCFApixels/af79284955bf40e9476cdcac79d7b098#file-dcfapixels_versioning-md) Семантика версионирования - [Открыть](https://gist.github.com/DCFApixels/af79284955bf40e9476cdcac79d7b098#file-dcfapixels_versioning-md)
## Окружение ## Окружение
Обязательные требования: Обязательные требования:
+ Зависимость: [DragonECS](https://github.com/DCFApixels/DragonECS) + Зависимость: [DragonECS](https://github.com/DCFApixels/DragonECS) `[1.0.0]`;
+ Минимальная версия C# 8.0; + Минимальная версия C# 8.0;
+ Минимальная версия Unity 2021.2.0; + Минимальная версия Unity 2021.2.0;

View File

@ -68,7 +68,7 @@ Versioning semantics - [Open](https://gist.github.com/DCFApixels/af79284955bf40e
## Environment ## Environment
Requirements: Requirements:
- Dependency: [DragonECS](https://github.com/DCFApixels/DragonECS) - Dependency: [DragonECS](https://github.com/DCFApixels/DragonECS) `[1.0.0]`;
- Minimum C# version: 8.0 - Minimum C# version: 8.0
- Minimum Unity version: 2021.2.0 - Minimum Unity version: 2021.2.0

View File

@ -8,7 +8,7 @@
"displayName": "DragonECS-Unity", "displayName": "DragonECS-Unity",
"description": "Integration with Unity for DragonECS", "description": "Integration with Unity for DragonECS",
"unity": "2021.2", "unity": "2021.2",
"version": "0.5.21", "version": "0.6.0",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/DCFApixels/DragonECS-Unity.git" "url": "https://github.com/DCFApixels/DragonECS-Unity.git"

View File

@ -9,6 +9,10 @@ namespace DCFApixels.DragonECS.Unity.Editors
[CanEditMultipleObjects] [CanEditMultipleObjects]
internal class EcsEntityConnectEditor : ExtendedEditor<EcsEntityConnect> internal class EcsEntityConnectEditor : ExtendedEditor<EcsEntityConnect>
{ {
public override bool RequiresConstantRepaint()
{
return UserSettingsPrefs.instance.RuntimeDrawMode == RuntimeDrawMode.Live ? true : base.RequiresConstantRepaint();
}
protected override void DrawCustom() protected override void DrawCustom()
{ {
DrawEntityInfo(); DrawEntityInfo();

View File

@ -6,14 +6,14 @@ namespace DCFApixels.DragonECS.Unity.Editors
{ {
internal enum RuntimeDrawMode internal enum RuntimeDrawMode
{ {
Lazy, Lazy = 0,
Live, Live = 1,
} }
internal enum MetaBlockRectStyle internal enum MetaBlockRectStyle
{ {
Clean, Clean = 0,
Edge, Edge = 1,
Fill, Fill = 2,
} }
internal enum MetaBlockColorMode internal enum MetaBlockColorMode
{ {
@ -126,7 +126,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
[SerializeField] [SerializeField]
private MetaBlockRectStyle _metaBlockRectStyle = MetaBlockRectStyle.Edge; private MetaBlockRectStyle _metaBlockRectStyle = MetaBlockRectStyle.Fill;
public MetaBlockRectStyle MetaBlockRectStyle public MetaBlockRectStyle MetaBlockRectStyle
{ {
get => _metaBlockRectStyle; get => _metaBlockRectStyle;

View File

@ -904,7 +904,11 @@ namespace DCFApixels.DragonECS.Unity.Editors
} }
internal static bool IsNullManagedReference(this SerializedProperty property) internal static bool IsNullManagedReference(this SerializedProperty property)
{ {
#if UNITY_2021_3_OR_NEWER
return property.managedReferenceId == ManagedReferenceUtility.RefIdNull; return property.managedReferenceId == ManagedReferenceUtility.RefIdNull;
#else
return property.managedReferenceId == SerializationUtility.RefIdNull;
#endif
} }
internal static int GetChildPropertiesCount(this SerializedProperty property, Type type, out bool isEmpty) internal static int GetChildPropertiesCount(this SerializedProperty property, Type type, out bool isEmpty)
{ {

View File

@ -187,6 +187,7 @@ namespace DCFApixels.DragonECS
public sealed override void SetRaw(object raw) { component = (T)raw; } public sealed override void SetRaw(object raw) { component = (T)raw; }
protected virtual T CloneComponent(T component) protected virtual T CloneComponent(T component)
{ {
#if UNITY_EDITOR
switch (_defaultValueCloneMethod) switch (_defaultValueCloneMethod)
{ {
case CloneMethod.Set: case CloneMethod.Set:
@ -196,6 +197,7 @@ namespace DCFApixels.DragonECS
case CloneMethod.ICloneable: case CloneMethod.ICloneable:
return (T)_defaultValueCloneable.Clone(); return (T)_defaultValueCloneable.Clone();
} }
#endif
return default; return default;
} }
object ICloneable.Clone() object ICloneable.Clone()