mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2026-04-21 20:15:56 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e38cecf19 | ||
|
|
da16b02fe9 | ||
|
|
1efdce2c70 | ||
|
|
dd1748efaa | ||
|
|
7e0343f8d1 | ||
|
|
951213e339 | ||
|
|
3509552c89 | ||
|
|
c21cce34b1 |
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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.22",
|
"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"
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user