Click or drag to resize

DrawerPublisher Class

Editor drawer for displaying Publishers in the inspector
Inheritance Hierarchy
SystemObject
  GUIDrawer
    PropertyDrawer
      EventsPlusDrawerPublisher

Namespace:  EventsPlus
Assembly:  EventsPlus (in EventsPlus.dll) Version: 1.0.6678.17824
Syntax
C#
public class DrawerPublisher : PropertyDrawer

The DrawerPublisher type exposes the following members.

Constructors
  NameDescription
Public methodDrawerPublisher
Initializes a new instance of the DrawerPublisher class
Top
Methods
  NameDescription
Protected methodaddSubscription
Creates a fresh, new element upon add input
Protected methodadjustArguments
Adjusts the number of RawArguments and their types to correspond to the reflected method information
Protected methodcacheList
Caches drop-down data for the entire subscriptionsList for optimization
Protected methoddrawArguments
Draws the arguments drop-down for the RawSubscription element
Protected methoddrawElement
Draws the individual RawSubscription element for the subscriptionsList
Protected methoddrawHeader
Draws the header for the subscriptionsList
Protected methodgetElementHeight
Calculates the inspector height for each RawSubscription element in the subscriptionsList
Public methodGetPropertyHeight
Calculates the drawer height in the inspector
(Overrides PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent).)
Public methodOnGUI
Draws the Publisher list of RawSubscriptions
(Overrides PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent).)
Top
Fields
  NameDescription
Protected fieldcache
Cached data that matches each element of the subscriptionsList, used for extreme optimization purposes
Protected fieldpublisherTypeArray
Cached array that defines the Publisher type
Protected fieldsubscriptionsList
Reorderable list of RawSubscriptions
Top
See Also