OmitWhenEmptyAttribute
namespace Griff;
public sealed class OmitWhenEmptyAttribute : AttributeLeaves a property out of scene and prefab files while it’s empty (null, an empty string or an empty list), so a property added to a component later doesn’t change the files of games that don’t use it: they save byte for byte as they did before it. It reads back as its default, empty, as a file saved before it was added does.
Methods
Section titled “Methods”IsEmpty
Section titled “IsEmpty”public static bool IsEmpty(object? value)True if value is empty as this attribute means it: null, “” or a list with nothing in it.