Description
This is a simple set of classes (USKGObject and USKGReplicatedObject) that are designed to be used in Blueprint and or C++. They come with the same functions actors and components do such as Tick, BeginPlay, OnDestroyed, and a few others.
How to use: You use them the same way you do with components and actors in terms of tick and replication. If you look at the screenshots you can get a rough overview. You create the UObject on the server like you would use SpawnActor. I have helper functions for this called
- CreateAndRegisterReplicatedSubObject – this will spawn the UObject and replicate it automatically.
- CreateReplicatedSubObject – this will spawn the UObject for later use.
- RegisterReplicatedSubObject – this will register the spawned UObject to the outer so it will begin replicating.
- UnRegisterReplicatedSubObject – this will unregister the spawned UObject from the outer so it will stop replicating.
From there, the only thing that needs done is the Actor or Component that is set to be the Outer need to have ReplicateUsingRegisteredSubObjectList set to true and you are good to go! Furthermore you can see the example provided in the content. Just place the Actor into the world and you are good to go with the example.
Video Example: https://youtu.be/W4VPqSLXJpY
You can contact us at any time and request that the asset you want be added to the site from the Request Asset section.