mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
breaking: InspectorHelper.IsVisibleSyncObject renamed to IsVisibleInInspector. universal.
This commit is contained in:
parent
323b357a94
commit
8298a2556b
@ -68,7 +68,7 @@ public static bool HasShowInInspector(this FieldInfo field)
|
||||
return fieldMarkers.Length > 0;
|
||||
}
|
||||
|
||||
public static bool IsVisibleSyncObject(this FieldInfo field)
|
||||
public static bool IsVisibleInInspector(this FieldInfo field)
|
||||
{
|
||||
return field.IsPublic || HasShowInInspector(field);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public SyncObjectDrawer(UnityEngine.Object targetObject)
|
||||
syncObjectFields = new List<SyncObjectField>();
|
||||
foreach (FieldInfo field in InspectorHelper.GetAllFields(targetObject.GetType(), typeof(NetworkBehaviour)))
|
||||
{
|
||||
if (field.ImplementsInterface<SyncObject>() && field.IsVisibleSyncObject())
|
||||
if (field.ImplementsInterface<SyncObject>() && field.IsVisibleInInspector())
|
||||
{
|
||||
syncObjectFields.Add(new SyncObjectField(field));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user