Skip to content

Use of Reflection in the Story Sequence Tool

The following classes utilize Reflection and may be fragile in the event of a Unity upgrade.

Class Use Cases
GameViewUtilities Used to get the Main Game View Used to get Game View Aspect Ratios
StorySequenceEditorUtilities Used to get Project Window Used to get Inspector Window Used to Lock Inspector Window
SceneSlotTool Basically entirely Reflection. May be moved to an accessible API in Unity 2020 (allegedly) Used to get Scene View Overlay Types Used to inject a new Scene View Overlay
StorySequenceEditorConfig Used to get Assemblies for finding Types elsewhere (text styles, camera modules, etc)
FrameEditorWindow Used to look up Types from Assemblies in StorySequenceEditorConfig
StorySequenceFrameDrawer Used to look up Types from Assemblies in StorySequenceEditorConfig
TimelineEditorWindow Used to look up Types from Assemblies in StorySequenceEditorConfig
DisplayUtilities Used to get and modify Gizmo Settings Used to set GameObject Icons
TextStyleArgumentsEditorBase Used to draw MaskFieldGUI
WindowLayout Used to load, save, and set the current Unity Editor Layout