So say i have an actor that contains a uobject class within itself, and this uobject is properly replicated around along with the actor itself is also replicated.
I managed to do variable replication of the uobject variables ( thankfully ) BUT what i want along with the variable replication is the uobject itself calls a function that will be run on server ( for validation purposes ) instead of me needing to use the actor that owns it to run a server call. Any help is appreciated
Sorry for the late reply, i kinda tried this on my side although the debugging is telling me that even though I’m requesting to the server the client is doing it. The server never actually runs it unless i ask the actor to do the server function
Thas why i was rather perplexed, it shouldn’t even be possible, though i ran simple debug which runs GetNetMode() on that function. if i were to call from the Actor i get a true for server, but if i were to call it internally from the object, it says client
I’ve set up my UObject derived class properly (like recomended here). And property replication works good, BUT I can’t call RPC on this object. On server side I’ve tried to call method marked as UFUNCTION(NetMulticast, Reliable). And it didn’t work.
When I rederived this my class from UActorComponent instead of simple UObject, this method started work.
What have I missed? Why didn’t it work?
(I’ve post this as separate question)