mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
0f10c72744
* feat: supports scriptable objects Now you can pass scriptable objects in commands, rpcs and syncvars For example: ```cs class Weapon: ScriptableObject { public string name; public string description; public int damage; ... } class Player : NetworkBehaviour { [SyncVar] Weapon equipped; ... } ``` Scriptable objects will be created in the client using ScriptableObject.CreateInstance. If users want something else they can provide a custom serializer (that has not changed) * fix: remove scriptableobject error Tests The test that checks that scrscriptableobjects give error is no longer valid |
||
---|---|---|
.. | ||
Mirror | ||
ScriptTemplates | ||
Mirror.meta | ||
ScriptTemplates.meta |