Skip to content

optimizations + IsStatic support

Choose a tag to compare

@Axwabo Axwabo released this 31 Jan 19:35
· 66 commits to main since this release

Breaking(?) changes:

  • Deprecated the following:
    • delegate `SendSpawnMessagePatch.SpawnDataModifier(NetworkIdentity, NetworkConnection, ref SpawnMessage)
    • field SendSpawnMessagePatch.SpawnDataModifiers
    • method SendSpawnMessagePatch.ModifySpawnMessage(NetworkIdentity, NetworkConnection, ref SpawnMessage)
  • Use the below method instead

Additions:

  • API::SpawnGameObjectWithGlobalTransform(GameObject) - optimizations based on #10
    • This method forces Mirror to use world-space transform (instead of localPosition localRotation localScale) when writing the spawn message
    • The global state isn't retained when writing data to later created connections, unless an slocObjectData component is added to the GameObject
      • A GameObject with an slocObjectData component will always have its transform written as global transform
  • API.ShouldSpawnWithGlobalTransform field (shouldn't be set manually, used by patches)

Changes (non-breaking):

  • Updated EXILED to 8.7.1
  • Modified the AdminToyPatch to return if an AdminToy's IsStatic property is set to true