Unreal Containers - Exploring TArray Replication - UE C++ Tutorial

preview_player
Показать описание
Exploring how TArrays replicate in complicated scenarios.
1: How to replicate TArrays?
2: Do TArrays replicate when adding values? Yes.
3: Do TArrays replicate when you change the contained values? Yes.
4: Do TArrays replicate when you only change 1 value in the array? Yes.
5: Do you get an OnRep if the TArray was modified locally to contai nthe same value? No
6: How to force an OnRep, even if the client predicted the modification

0:00 Replicating an TArray (Property Replication Review)
1:24 Tests for replication
1:29 Replication TArray int32 debugging demonstration
3:20 Replicating TArray of structs
3:37 Struct Replication Review
4:55 TEST1: Adding structs to an TArray test
7:50 TEST2: Does Modifying Array elements cause an onrep? Or only when you add?
9:22 TEST3: Does modifying single element cause an OnRep for the entire array?
11:04 TEST4: Does modifying value on client before server prevent an OnRep ?
13:12 How to force an OnRep even if client has the same value?
Рекомендации по теме
Комментарии
Автор

Your Networking playlist is a gold mine, thanks for making these dude <3

furyodev
Автор

Will the OnRep get called if we change the TArray elements order?

yuchenmei
Автор

Nice video - thank you for making this! Btw. it wasn't quite clear to me that there was a "new" and an "old" method... will need to watch again, maybe it will make sense xD (quite new to networking in UE)

jjqjxkp
Автор

how do u replicate an array of structs inside of a struct thats tfastarrayreplication

ronaldwoofer
Автор

I just wanna create players teams data, i need callback value which element was changed - int team ID example. How i can do it? OnRep just notify what data was changed, not show wich array element was changed.

DimitryArsenev
welcome to shbcf.ru