I am making a multiplayer game in unity using fusion.
My issue is the following.
This is what I am getting:
But this is what I should be getting:
I am also receiving the following error:
"
ArgumentOutOfRangeException: No method found matching name “GetDrawerTypeForType”, signature “Fusion.Editor.UnityInternal+ScriptAttributeUtility+GetDrawerTypeForTypeDelegate”, flags “Static, NonPublic” and params: System.Type, candidates are
: Void ResetCachedTypesAndAsset()
UnityEditor.PropertyHandlerCache get_propertyHandlerCache()
Void set_propertyHandlerCache(UnityEditor.PropertyHandlerCache)
Void ClearGlobalCache()
Void PopulateBuiltinAttributes()
Void AddBuiltinAttribute(System.String, System.String, UnityEngine.PropertyAttribute)
System.Collections.Generic.List
1[UnityEngine.PropertyAttribute] GetBuiltinAttributes(UnityEditor.SerializedProperty) System.Collections.Generic.Dictionary
2[System.Type,UnityEditor.ScriptAttributeUtility+CustomPropertyDrawerContainer[ ]] BuildDrawerTypeForTypeDictionary()System.Type GetDrawerTypeForType(System.Type, Boolean)
Int32 CalculateInheritanceLevel(System.Type, Int32, System.Collections.Generic.Dictionary
2[System.Type,System.Int32]) Boolean TryGetDrawerTypeForTypeFromCache(Boolean, Boolean, System.Type, System.Type ByRef) Boolean TryExtractDrawerTypeForTypeFromCache(Boolean, Boolean, System.Type, System.Type ByRef) Boolean TryFindDrawers(CustomPropertyDrawerContainer[ ], CustomPropertyDrawerContainer ByRef) System.Type GetDrawerTypeForPropertyAndType(UnityEditor.SerializedProperty, System.Type) System.Collections.Generic.List
1[UnityEngine.PropertyAttribute] GetFieldAttributes(System.Reflection.FieldInfo)System.Reflection.FieldInfo GetFieldInfoAndStaticTypeFromProperty(UnityEditor.SerializedProperty, System.Type ByRef)
System.Reflection.FieldInfo GetFieldInfoFromProperty(UnityEditor.SerializedProperty, System.Type ByRef)
Boolean GetTypeFromManagedReferenceFullTypeName(System.String, System.Type ByRef)
System.Type GetScriptTypeFromProperty(UnityEditor.SerializedProperty)
System.Reflection.FieldInfo GetFieldInfoFromPropertyPath(System.Type, System.String, System.Type ByRef)
UnityEditor.PropertyHandler GetHandler(UnityEditor.SerializedProperty)
Boolean CanUseSameHandler(UnityEditor.SerializedProperty, UnityEditor.SerializedProperty)
System.Collections.Generic.List`1[System.Reflection.FieldInfo] GetAutoLoadProperties(System.Type)
Int32 g__AddOrReplaceInterfaceLevel|20_0(Int32, <>c__DisplayClass20_0 ByRef)
Boolean g__IsAppropriateDrawerFound|22_0(<>c__DisplayClass22_0 ByRef)
Parameter name: name
Fusion.Editor.ReflectionUtils.GetMethodOrThrow (System.Type type, System.String name, System.Reflection.BindingFlags flags, System.Type delegateType, Fusion.Editor.ReflectionUtils+DelegateSwizzle[ ] swizzles, Fusion.Editor.ReflectionUtils+DelegateSwizzle& firstMatchingSwizzle) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10841)
Fusion.Editor.ReflectionUtils.GetMethodOrThrow (System.Type type, System.String name, System.Reflection.BindingFlags flags, System.Type delegateType) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10768)
Fusion.Editor.ReflectionUtils.CreateMethodDelegateInternal (System.Type type, System.String name, System.Reflection.BindingFlags flags, System.Type delegateType) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10763)
Fusion.Editor.ReflectionUtils.CreateMethodDelegateInternal[T] (System.Type type, System.String name, System.Reflection.BindingFlags flags) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10759)
Fusion.Editor.ReflectionUtils.CreateMethodDelegate[T] (System.Reflection.Assembly assembly, System.String typeName, System.String methodName, System.Reflection.BindingFlags flags) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10511)
Rethrow as InvalidOperationException: UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.UnityEditor.ScriptAttributeUtility.GetDrawerTypeForType with flags: Static, NonPublic and type: Fusion.Editor.UnityInternal+ScriptAttributeUtility+GetDrawerTypeForTypeDelegate
Fusion.Editor.ReflectionUtils.CreateMethodDelegate[T] (System.Reflection.Assembly assembly, System.String typeName, System.String methodName, System.Reflection.BindingFlags flags) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10513)
Fusion.Editor.ReflectionUtils.CreateEditorMethodDelegate[T] (System.String editorAssemblyTypeName, System.String methodName, System.Reflection.BindingFlags flags) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10483)
Fusion.Editor.UnityInternal+ScriptAttributeUtility…cctor () (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:11651)
Rethrow as TypeInitializationException: The type initializer for ‘ScriptAttributeUtility’ threw an exception.
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.b__0 () (at <1899c5bd2a6d466081cd705bee01d689>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)"