Transient properties are always initialized to zero and are not serialized to disk. The time to use one is if the object at runtime will set the variable. For instance, let’s suppose you had a character that has MaxHealth as a value setup by the designer, which you treat as const at runtime. At runtime, you’d copy that value into a transient called CurrentHealth. CurrentHealth would go up or down and can be compared to MaxHealth.
15 Likes