Why TArray is not replicating?
In my game, Character has a set of spells which I used a Tarray to store it and replicate it to all clients. And I did TArray replication just like the ShooterGame. But the TArray member only replicates the size of the array, excluding the spells.
Below is my C++ code:
After spawning all the spell, in client side, I found that the SpellArray.Num() is correct, but SpellArray[i] == NULL. Help!! what's happening??
asked Jan 15 '15 at 07:21 AM in C++ Programming
try to put bReplicates = true; in initialize of ALabSpell, your should be in ALabSpell::ALabSpell(const class FObjectInitializer& PCIP) : Super(PCIP)
answered Jan 15 '15 at 07:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here