fusion app loop demo; possible bug 16 character limit

Options

At the Staging scene when you configure your player properties,

the Name field does not update with strings of more than 16 characters.


Enter the name "abcdefghijklmnopqrstuvwxyz" and the Player object will not update to more than 16 characters "abcdefghijklmnop" as shown in the Waiting Players panel


I then made a new Networked string property to test via an RPC and the string is cut off after 16 characters.


Is this a configuration setting on my part or a bug/limit with strings sent via RPC?

Comments

  • I discovered that a simple [Networked] public string Name { get; set; } property seems to default to a size _16 for string values


    If I change to: [Networked] public NetworkString<_32> Name { get; set; }, the value is set with 32 character limit

  • emotitron
    emotitron ✭✭✭
    Options

    If using string, you can also use the [Capacity(32)] attribute. NetworkString<> however is preferred for performance reasons.