mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2026-04-22 04:27:23 +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)
|
||||
## Окружение
|
||||
Обязательные требования:
|
||||
+ Зависимость: [DragonECS](https://github.com/DCFApixels/DragonECS)
|
||||
+ Зависимость: [DragonECS](https://github.com/DCFApixels/DragonECS) `[1.0.0]`;
|
||||
+ Минимальная версия C# 8.0;
|
||||
+ Минимальная версия Unity 2021.2.0;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user