Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sending prefab in message fails without warning or error #2060

@James-Frowen

Description

@James-Frowen

Describe the bug

Message like this are able to be sent and give no error or warning.

public class CreateCharacterMessage : MessageBase
{
    public GameObject selectedPlayerPrefab;
}

The problem with this is that the field will be null when when Deserialized.

Expected behavior
There should be an error or warning when Prefabs or other objects with netId = 0 are sent in message.

Additional context
This probably applies to Commands and RPC too

Metadata

Metadata

Assignees

No one assigned

    Labels

    WeaverBug caused by WeaverbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions