Compare commits

...

8 Commits
0.5.22 ... 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
6 changed files with 15 additions and 9 deletions

View File

@ -68,7 +68,7 @@
Семантика версионирования - [Открыть](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;
+ Минимальная версия Unity 2021.2.0;

View File

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

View File

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

View File

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

View File

@ -904,7 +904,11 @@ namespace DCFApixels.DragonECS.Unity.Editors
}
internal static bool IsNullManagedReference(this SerializedProperty property)
{
#if UNITY_2021_3_OR_NEWER
return property.managedReferenceId == ManagedReferenceUtility.RefIdNull;
#else
return property.managedReferenceId == SerializationUtility.RefIdNull;
#endif
}
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; }
protected virtual T CloneComponent(T component)
{
#if UNITY_EDITOR
switch (_defaultValueCloneMethod)
{
case CloneMethod.Set:
@ -196,6 +197,7 @@ namespace DCFApixels.DragonECS
case CloneMethod.ICloneable:
return (T)_defaultValueCloneable.Clone();
}
#endif
return default;
}
object ICloneable.Clone()