Skip to main content

PlatformConditionAttribute

A class in Alta.Attributes, the global namespace.

Inspector attribute that marks a field as only relevant on certain platforms, either from PlatformFlags or an Android or desktop flag.

Constructors​

MemberWhat it is
PlatformConditionAttribute(PlatformFlags runtime)Creates a PlatformConditionAttribute from isAndroid.
PlatformConditionAttribute(bool isAndroid)Creates a PlatformConditionAttribute from isAndroid.

Properties​

MemberWhat it is
PlatformFlags Runtime { get; }The platforms the field applies to. The bool constructor gives Android, or Windows and Linux.