# Conditional Replication within UStruct Properties?

**URL:** <https://forums.unrealengine.com/t/conditional-replication-within-ustruct-properties/455665>\
**Category:** Editor Scripting\
**Tags:** ustruct, unreal-engine, CPP, question, replicating\
**Created:** [September 19, 2019, 7:48pm UTC](https://forums.unrealengine.com/t/conditional-replication-within-ustruct-properties/455665 "2019-09-19T19:48:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atanknomore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@atanknomore](https://forums.unrealengine.com/u/atanknomore)\
**Post date:** [September 19, 2019, 7:48pm UTC](https://forums.unrealengine.com/t/conditional-replication-within-ustruct-properties/455665/1 "2019-09-19T19:48:18Z")

</div>

A bit of a dummy question today but is there a way to declare conditional replication for UProperties inside UStructs? At the moment I understand that only NotReplicated specifiers are natively supported.

How could this be worked around?  
An example is that in my Ustruct, I have an enumerator variable and I would like a variable to only need replication when this value is Specifically this or that. I know I can do that if I declare that within a class using

> **[Conditional Property Replication](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Networking/Actors/Properties/Conditions/)**
>
> Detailed information about how to conditionally replicate Actor properties.

but I’m wondering if anything of that sort can be specified when working under the ustructs framework. The data I’m referring to would not impose much data bandwidth consumption but I would like to optimize consumption as much as I can.

Note: The reason why I’m doing this in a Ustruct is that I’m using the Ustruct as a functionality template holder that would be easily implemented in any potential class.

---

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [November 21, 2023, 11:38am UTC](https://forums.unrealengine.com/t/conditional-replication-within-ustruct-properties/455665/2 "2023-11-21T11:38:36Z")

</div>

Hello, i have the same problem, did you found a solution? Cheers
