Runner.Spawn is empty?

Options

Sometimes the pickUp is empty.

var pickUp = Runner.Spawn(pickup, transform.position, transform.rotation,Object.InputAuthority,BeforePickupSpawned);

This is often the case with clients

Best Answer

  • vimrzhang
    vimrzhang
    Answer ✓
    Options

    Thanks to discord popo for replying.

    1. On a client in hosted or client/server mode, the default action is that nothing will happen and that the call will return null.

    2. https://doc.photonengine.com/en-us/fusion/current/manual/spawning The reason for being null is explained here. I hope it helps you
    3. Spawning | Photon Engine
    4. Global cross platform multiplayer game backend as a service (SaaS, Cloud) for synchronous and asynchronous games and applications. SDKs are available for android, iOS, .NET., Mac OS, Unity 3D, Windows, Unreal Engine, HTML5 and others.

    5. Spawn seems to be called from the used Client and Host. It is null on the Client and not null on the Host.


Answers

  • vimrzhang
    vimrzhang
    Answer ✓
    Options

    Thanks to discord popo for replying.

    1. On a client in hosted or client/server mode, the default action is that nothing will happen and that the call will return null.

    2. https://doc.photonengine.com/en-us/fusion/current/manual/spawning The reason for being null is explained here. I hope it helps you
    3. Spawning | Photon Engine
    4. Global cross platform multiplayer game backend as a service (SaaS, Cloud) for synchronous and asynchronous games and applications. SDKs are available for android, iOS, .NET., Mac OS, Unity 3D, Windows, Unreal Engine, HTML5 and others.

    5. Spawn seems to be called from the used Client and Host. It is null on the Client and not null on the Host.