Author : Timo Naskali

Adds some spacing in the Inspector. This is just like Unity’s built-in Space attribute except that it supports targeting of properties and methods in addition to fields. PSpace Adds some spacing in the Inspector. PSpace(float height) Adds specified amount of spacing in pixels in the Inspector. Attribute Target Field, property, method o..

Read more

Makes target field or property be shown as a slider in the inspector. This is just like Unity’s built-in Range attribute except that it supports targeting of properties in addition to fields. PRange(float minValue, float maxValue) Makes target class member be shown as a slider that allows adjusting value between given minimum and maximum values. ..

Read more

When added before a collection type class member, indicates that the value of any of its members can not be null. Any member whose value is null will be highlighted with red color in the inspector view. Attribute Target Field, property, indexer, method return value or method parameter. Target type must be a collection of ..

Read more

When added before a component class causes the transform component to be locked to default state in the inspector for all GameObjects that contain the component with this attribute. This means that the local position and rotation of the transform will always remain at (0, 0, 0), and the local scale will always remain at ..

Read more

Determines how disabled components should be visualized in the inspector. None Disabled components are drawn fully opaque just like enabled components. Header Only (Default) The header of disabled components will be drawn greyed out. Header And Body The whole component will be drawn g..

Read more

Determines how inactive GameObjects should be visualized in the inspector. None Inactive GameObjects are drawn fully opaque just like active GameObjects. Header Only (Default) The header of inactive GameObjects will be drawn greyed out. Header And Body The whole GameObject will be drawn g..

Read more

Adds a tooltip above the target in the Inspector. This is just like Unity’s built-in Tooltip attribute except that it supports targeting of properties and methods in addition to fields. PTooltip(string tooltip) Adds the given tooltip text to a field, property or a method in the inspector. PTooltip(params string[] tooltipLines) Adds the given tooltip text ..

Read more

Adds a header above the target in the Inspector. This is just like Unity’s built-in Header attribute except that it supports targeting of properties and methods in addition to fields. It also includes a couple of convenient constructors that make it easier to do some types of headers. PHeader(string header) Adds the given header text ..

Read more

Attribute that can be used to make class member that follows the attribute be shown as disabled (read-only) when a predicate statement is true. DisableIf(string classMemberName, object requiredValue) When this constructor is used, the target is disabled if the class member with the given name has the specified value. DisableIf(string classMemberName, Is comparison, object requiredValue) ..

Read more

When added before a class member causes a help box to be shown above the control of the class member it in the inspector. It is also possible to only show the help box when a specified predicate is true. Attribute Target Field, property, method or indexer. Example using UnityEngine; using Sisus.Attributes; public class HelpPuzzleBox ..

Read more