mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2026-04-22 04:35:55 +08:00
Compare commits
No commits in common. "main" and "0.5.21" have entirely different histories.
@ -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) `[1.0.0]`;
|
+ Зависимость: [DragonECS](https://github.com/DCFApixels/DragonECS)
|
||||||
+ Минимальная версия 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) `[1.0.0]`;
|
- Dependency: [DragonECS](https://github.com/DCFApixels/DragonECS)
|
||||||
- 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.6.0",
|
"version": "0.5.21",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/DCFApixels/DragonECS-Unity.git"
|
"url": "https://github.com/DCFApixels/DragonECS-Unity.git"
|
||||||
|
|||||||
@ -9,10 +9,6 @@ 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();
|
||||||
|
|||||||
@ -6,14 +6,14 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
{
|
{
|
||||||
internal enum RuntimeDrawMode
|
internal enum RuntimeDrawMode
|
||||||
{
|
{
|
||||||
Lazy = 0,
|
Lazy,
|
||||||
Live = 1,
|
Live,
|
||||||
}
|
}
|
||||||
internal enum MetaBlockRectStyle
|
internal enum MetaBlockRectStyle
|
||||||
{
|
{
|
||||||
Clean = 0,
|
Clean,
|
||||||
Edge = 1,
|
Edge,
|
||||||
Fill = 2,
|
Fill,
|
||||||
}
|
}
|
||||||
internal enum MetaBlockColorMode
|
internal enum MetaBlockColorMode
|
||||||
{
|
{
|
||||||
@ -126,7 +126,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
|
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private MetaBlockRectStyle _metaBlockRectStyle = MetaBlockRectStyle.Fill;
|
private MetaBlockRectStyle _metaBlockRectStyle = MetaBlockRectStyle.Edge;
|
||||||
public MetaBlockRectStyle MetaBlockRectStyle
|
public MetaBlockRectStyle MetaBlockRectStyle
|
||||||
{
|
{
|
||||||
get => _metaBlockRectStyle;
|
get => _metaBlockRectStyle;
|
||||||
|
|||||||
@ -904,11 +904,7 @@ 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,7 +187,6 @@ 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:
|
||||||
@ -197,7 +196,6 @@ 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