fr.jeanf.eventsystem 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.attestation.p7m
CHANGED
|
Binary file
|
|
@@ -31,7 +31,7 @@ namespace jeanf.EventSystem.EditorTools
|
|
|
31
31
|
|
|
32
32
|
const BindingFlags FieldFlags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;
|
|
33
33
|
|
|
34
|
-
[MenuItem("Tools/EventSystem/Event System Debugger")]
|
|
34
|
+
[MenuItem("Tools/Jeanf/EventSystem/Event System Debugger")]
|
|
35
35
|
static void Open()
|
|
36
36
|
{
|
|
37
37
|
var w = GetWindow<EventSystemDebuggerWindow>();
|
|
@@ -237,7 +237,7 @@ namespace jeanf.EventSystem.EditorTools
|
|
|
237
237
|
GUILayout.Space(16);
|
|
238
238
|
GUILayout.Label(isCanonical ? "[CANONICAL]" : "[duplicate]",
|
|
239
239
|
isCanonical ? EditorStyles.miniBoldLabel : EditorStyles.miniLabel, GUILayout.Width(86));
|
|
240
|
-
GUILayout.Label($"id {so.
|
|
240
|
+
GUILayout.Label($"id {so.GetEntityId()}", EditorStyles.miniLabel, GUILayout.Width(96));
|
|
241
241
|
GUILayout.Label($"thread {rec.firstSeenThreadId}" + (rec.seenOffMainThread ? " ⚠" : ""),
|
|
242
242
|
EditorStyles.miniLabel, GUILayout.Width(90));
|
|
243
243
|
if (GUILayout.Button("Ping asset", EditorStyles.miniButton, GUILayout.Width(74)))
|
|
@@ -341,14 +341,14 @@ namespace jeanf.EventSystem.EditorTools
|
|
|
341
341
|
List<PubInfo> GetPublishers(Group g)
|
|
342
342
|
{
|
|
343
343
|
var list = new List<PubInfo>();
|
|
344
|
-
var seen = new HashSet<
|
|
344
|
+
var seen = new HashSet<EntityId>();
|
|
345
345
|
|
|
346
346
|
foreach (var pr in EventDiagnostics.SnapshotPublishers(g.groupKey))
|
|
347
347
|
{
|
|
348
348
|
Component c = null;
|
|
349
349
|
pr.component?.TryGetTarget(out c);
|
|
350
350
|
if (c == null) continue;
|
|
351
|
-
if (!seen.Add(c.
|
|
351
|
+
if (!seen.Add(c.GetEntityId())) continue;
|
|
352
352
|
list.Add(new PubInfo { comp = c, label = pr.typeName });
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -357,7 +357,7 @@ namespace jeanf.EventSystem.EditorTools
|
|
|
357
357
|
foreach (var c in scanned)
|
|
358
358
|
{
|
|
359
359
|
if (c == null) continue;
|
|
360
|
-
if (!seen.Add(c.
|
|
360
|
+
if (!seen.Add(c.GetEntityId())) continue;
|
|
361
361
|
list.Add(new PubInfo { comp = c, label = c.GetType().Name });
|
|
362
362
|
}
|
|
363
363
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fr.jeanf.eventsystem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"displayName": "Event System",
|
|
5
5
|
"description": "This package contains a basic Event System based on Scriptable Objects as communication medium",
|
|
6
6
|
"unity": "2021.3",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/lejeanf/EventSystem",
|
|
9
9
|
"type": "git",
|
|
10
|
-
"revision": "
|
|
10
|
+
"revision": "78c3033145d9e129bc48956499a4abcd63425e19"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"jeanf",
|