1. Hi all,
    (first attempt at plugin, so I am pretty new to this, apologies if I am missing some documentation somewhere)

    I am trying to create a sphere at a point, and I am using the following code;

    Code:
        def CreateSphere(self, position, radius):        sphere = UnityEngine.GameManager.server.CreateEntity("assets/prefabs/visualization/sphere.prefab", position, UnityEngine.Quaternion(), True)
    However I get the error that the GameManager is read-only;

    Code:
      File "MightyDeathmatch.py", line 114, in CreateSphere
    RuntimeError: Failed to call BuildArenaCommand (MissingMemberException: 'namespa
    ce#' object attribute 'GameManager' is read-only)
      at IronPython.Runtime.Binding.PythonGetMemberBinder+NamespaceTrackerDelegate.T
    arget (System.Runtime.CompilerServices.CallSite site, System.Object self, IronPy
    thon.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
      at System.Dynamic.UpdateDelegates.UpdateAndExecute2[Object,CodeContext,Object]
    (System.Runtime.CompilerServices.CallSite site, System.Object arg0, IronPython.
    Runtime.CodeContext arg1) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.DynamicInstruction`3[System.Object,IronPyth
    on.Runtime.CodeContext,System.Object].Run (Microsoft.Scripting.Interpreter.Inter
    pretedFrame frame) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interp
    reter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    
    Any suggestions on how to create entities like that in a python plugin?

    Thanks
     
  2. What are your imports? Did you import UnityEngine.GameManager?