PropertyDecorator

Class in ChivalrousGames.Common.Inspector

Description

Base class for property decorators. This class was developed to modify the behavior and decorate fields displayed in the Unity inspector and allow to “chain” property decorators. The idea behind it is similar to the decorator pattern. Configured through a DecoratedPropertyAttribute. Useful only in the Unity editor. The order in which the decorators are passed to the DecoratedPropertyAttribute is important. A little fiddling with this order may be required by the users to achieve the desired result.