-
Notifications
You must be signed in to change notification settings - Fork 1
MessHallNetworkTransform
Carsten23455 edited this page May 5, 2026
·
2 revisions
MessHallNetworkTransform is a networking tool for gameobject's (custom or vanilla) that dont have a NetworkTransform.
it will sync these properites across every client in the lobby in realtime:
- Position
- Rotation
- Scale
- a realtime object like a ball that player's can interract with.
- Scaling a playermodel for like a modifier
- rotating a custom object in realtime
- Only the host can call the Sync method, although every client with the mod needs the transform for it to properly sync
For adding the MessHallNetworkTransform Component to your object you'd do:
MyExampleObject.AddComponent<MessHallNetworkTransform>();then to register it the method is
MessHallNetworkTransform.RegisterObject(string objectName)so you'd do:
var MessHallExampleTransform = MyExampleObject.GetComponent<MessHallNetworkTransform>();
MessHallExampleTransform.RegisterObject(MyExampleObject.name);then you'll have to register networking (will be hooked into RegisterObject() next update) the method is:
MessHallNetworkTransform.StartNetworking(string objectName)so just add:
var MessHallExampleTransform = MyExampleObject.GetComponent<MessHallNetworkTransform>();
MessHallExampleTransform.RegisterObject(MyExampleObject.name);
MessHallExampleTransform.StartNetworking(MyExampleObject.name);