Skip to main content

HasComponentLabel

A class in Alta.Attributes, the global namespace.

Conditional label attribute that picks one of two labels (and default values) based on whether the object has a given component.

Constructors​

MemberWhat it is
HasComponentLabel(string hasName, string dontHasName, Type componentType)Creates a HasComponentLabel from hasName, dontHasName, componentType, hasDefaultValue and dontHasDefaultValue.
HasComponentLabel(string hasName, string dontHasName, Type componentType, float hasDefaultValue, float dontHasDefaultValue)Creates a HasComponentLabel from hasName, dontHasName, componentType, hasDefaultValue and dontHasDefaultValue.

Properties​

MemberWhat it is
Type ComponentType { get; private set; }The component type to look for.