ORK Framework Logo - RPG Editor for Unity
  • ORK 4 BETA
  • Features
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK

ORK 4 Documentation

  • Getting Started
    • Welcome
    • First Steps (Unity)
  • Features
    • The Status System
    • Schematics
    • Schematic Nodes
    • Dialogue Importer
    • Variables
    • Selected Data
  • Components
    • Battle Components
    • Combatant Components
    • Control Components
    • Cursor Prefab Components
    • Game Starters
    • Interactable Components
    • Move AI Components
    • Scene Setup Components
  • Editor
    • The ORK 4 Editor
    • Sections & Sub-Sections
    • Node Editor
    • Schematic Editor
    • Asset Sources
    • Unity Overlay Toolbar
  • Section: System
    • System Settings
    • Languages
    • Organizer Types
    • Game States & Conditions
    • General Condition Templates
    • Object Pools
    • Prefab Savers
    • Scene Connections
  • Section: Controls
    • Game Controls
    • Interaction Settings
    • Player Controls
    • Camera Controls
    • Input Keys
    • Control Maps
    • Camera Positions
    • Battle Camera
  • Section: Gameplay
    • Game Settings
    • Formulas
    • Difficulties
    • Shortcut Slots & Settings
    • Custom Settings & Global Custom Settings
    • Global Machines
    • Machine Templates
  • Section: Status
    • Status Values
    • Status Effects
    • Attack Modifiers
    • Defence Modifiers
    • Abilities & Ability Developments
    • Status Developments
    • Research Trees
    • Damage Types
    • Status Bonuses & Templates
    • Status Condition Templates
  • Section: Inventory
    • Inventory Settings
    • Inventory Containers
    • Currencies
    • Items
    • AI Rulesets
    • Crafting Recipes
    • Equipment Slots & Slot Set Templates
    • Equipment & Available Equipment Templates
    • Shops
    • Loot
  • Section: Combatants
    • Combatants
    • Combatant Groups
    • Class Slots
    • Classes
    • Factions & Faction Benefits
    • Animations
    • Move AIs
    • Formations
    • Action Combos
  • Section: Battles
    • Battle Systems
    • Turn Based Battles
    • Active Time Battles
    • Real Time Battles
    • Phase Battles
    • Battle Spots
    • Battle AIs
    • Battle Actions Settings
    • Special Commands Settings
    • Target Settings
    • Target Selection Templates
    • Battle Range Templates
    • Battle Grid Settings
    • Battle Grid Highlights
    • Battle Grid Cell Types
    • Battle Grid Formations
  • Section: Content
    • Content Types
    • Music
    • Sound Templates
    • Areas
    • Teleports
    • Quests & Quest Tasks
    • Logs & Log Texts
    • Object Contents
  • Section: UI
    • UI Settings
    • UI Layers
    • UI Layouts
    • UI Boxes
    • HUDs
    • Notifications
    • Cursor Settings
  • Section: Menus
    • Start Menu
    • Save Game Settings
    • Option Categories
    • Menu Screens
    • Menu Requirements
    • Battle Menus
    • Loot Dialogues
    • Item Collection
    • Combatant Selections
    • Quantity Selections
    • Shop Layouts
  • Section: Texts
    • Text Settings
    • Formatting Settings
    • Flying Texts
    • Use Cost Display
    • Status Preview Display
    • Bonus Display
    • Status Change Display
    • Console Settings & Console Types
    • Text Codes
  • Sections: Editor
    • Editor Settings
    • Backups
    • Variables
    • Plugins
  • Scripting
    • Access Handler
    • Custom Nodes
    • Custom Save Data
    • Custom Component Save Data

ORK 4 Tutorials

  • ORK 4 Unity Quickstart Tutorials (3D)
    • ORK 4 Unity Quickstart 3D
    • 01 Initial ORK Setup
    • 02 Player Setup
    • 03 Music & Scenes
    • 04 UI System Setup
    • 05 UI Boxes
    • 06 Flying Texts
    • 07 Status Values
    • 08 Status Effects
    • 09 First Abilities
    • 10 Fighter Setup
    • 11 First Enemies & Battle AI
    • 12 Battle System Setup
    • 13 Animating Battle Start and End
    • 14 Random Battles
    • 15 Animating Actions
    • 16 Player Battle HUD
    • 17 Elemental Attacks
    • 18 Animating More Actions
    • 19 Inventory & Loot
    • 20 Equipment
    • 21 Loot, Start Equipment & Viewers
    • 22 Magic Abilities
    • 23 Caster Setup
    • 24 More Enemies
    • 25 Start Menu & Save Games
    • 26 Menu Screens
    • 27 Interactions
    • 28 Item Collectors
    • This Is Not The End
    • Quickstart Extended
      • Unity UI: Interaction HUD
  • Schematics Tutorials
    • UI Animation Schematics
  • UI Tutorials
    • Unity UI: Initial Setup
    • Unity UI: Interaction HUD

ORK 4 Extensions

  • Plugins
    • Save Game Compression Plugin
  • Schematic Nodes
    • Footstepper Nodes (Unity)
  • Scripts
    • A* Pathfinding Movement Component (Unity)
    • PolyNav 2D Movement Component (Unity)
    • Cinemachine Camera Control Type (Unity)
    • Rewired Input Key (Unity)
    • Unity Legacy Input Key (Unity)
    • Core GameKit Wrapper (Unity)
    • Pool Boss Wrapper (Unity)
View Categories
  • Guide
  • ORK 4
  • ORK 4 Documentation
  • Components

Interactable Components

Learn more about interactable components.

All interactable components can use general conditions to determine if they can be started.

Start Types #

Interactable components have to be started by something in order to perform their tasks, e.g. playing a schematic, opening a shop or changing the current area of the game.

The following start types are available in all interactable components.

Animation (Unity) #

Animation start types are available in Unity and are used to start components by animation events (e.g. in Mecanim animations) or from UI.

Animation Event #

Starts when receiving an animation event without any parameter.

Can also be used by UI components when firing UnityEvents.

Animation Event (float) #

Starts when receiving an animation event with a float parameter.

The parameter is available as local double variable via the variable key parameter.

Can also be used by UI components when firing UnityEvents.

Animation Event (int) #

Starts when receiving an animation event with an int parameter.

The parameter is available as local long variable via the variable key parameter.

Can also be used by UI components when firing UnityEvents.

Animation Event (string) #

Starts when receiving an animation event with a string parameter.

The parameter is available as local string variable via the variable key parameter.

Can also be used by UI components when firing UnityEvents.

Animator IK #

Starts before updating the internal IK system of an animator (OnAnimatorIK).

Animator Move #

Starts each frame after state machines and animations have been evaluated, but before Animator IK (OnAnimatorMove).

Joint Break #

Starts when a joint attached to the object instance breaks (OnJointBreak).

UI Game Object #

Starts when used by UI components firing UnityEvents with an object instance parameter.

The used game object will be the starting object of the component.

Application (Unity) #

Application start types are available in Unity and are started by events coming from the game’s application.

Focus Gained #

Starts when the application gets focus (OnApplicationFocus true).

Focus Lost #

Starts when the application loses focus (OnApplicationFocus false).

Paused #

Starts when the application is paused (OnApplicationPause true).

Quit #

Starts before the application is closed (OnApplicationQuit).

Unpaused #

Starts when the application is unpaused (OnApplicationPause false).

Auto #

Auto start types are available in all engines and automatically start the component on defined events.

Change Notification #

Starts by getting notified of changes, e.g. variable changes or a combatant’s status changes.

Destroy #

Starts when the object/component is destroyed.

Disable #

Starts when the object/component is disabled.

Enable #

Starts when the object/component is enabled.

Ready #

Starts when the object/component is added to the scene (only starts once).

Scene Loaded #

Starts when a new scene was loaded.

Collision #

Collision start types are available in all engines and start the component upon collision events.

Collision Enter #

Starts when an object starts colliding with the component’s object.

Collision Exit #

Starts when an object stops colliding with the component’s object.

Collision Stay #

Starts while an object is continuously colliding with the component’s object.

Particle Collision #

Starts when a particle collides with the machine’s object.

Interaction #

Interaction start types are available in all engines and start the component upon player interaction.

Drop #

Starts when the player drops something (from UI) on the component’s object.

Requires a collider and the object being on a layer that can be hit by the raycast set up in UI settings.

Input Key #

Starts when the player presses an input key.

Interact #

Starts on player interaction.

Mouse Down #

Starts when a mouse button is pressed down on the component’s object.

Mouse Drag #

Starts when a mouse drag is performed on the component’s object.

Mouse Enter #

Starts when the mouse cursor enters the component’s object.

Mouse Exit #

Starts when the mouse cursor leaves the component’s object.

Mouse Over #

Starts while the mouse cursor is over the component’s object.

Mouse Up #

Starts when a mouse button has been released after being pressed down on the component’s object.

Mouse Up As Button #

Starts when a mouse button has been released over the component’s object it has been pressed down.

None #

The none start type is available in all engines.

Can’t be started automatically, e.g. use schematics to start.

You can also just not add a start type instead.

Renderer (Unity) #

Renderer start types are available in Unity and start the component based on renderer events.

Became Invisible #

Starts when the machine’s game object is no longer visible by any camera (OnBecameInvisible).

Became Visible #

Starts when the machine’s game object became visible by any camera (OnBecameVisible).

Post Render #

Starts after a camera finished rendering the scene (OnPostRender, only on cameras).

Pre Cull #

Starts before the camera culls the scene (OnPreCull).

Pre Render #

Starts before a camera starts rendering the scene (OnPreRender, only on cameras).

Render Object #

Starts after the camera has rendered the scene (OnRenderObject).

This is similar to Post Render, but is called on all game objects, not only the camera.

Will Render Object #

Starts once for each camera the object is visible in during culling (OnWillRenderObject).

Tag #

The tag start type is available in all engines.

Starts when called using matching tags, e.g. via schematics, HUDs or status changes.

Tick #

Tick start types are available in all engines and start the component on frame or physics update ticks.

Late Tick #

Starts every frame update after all ‘Tick’ updates have finished.

Physics Tick #

Starts every physics update.

Tick #

Starts every frame update.

Trigger #

Trigger start types are available in all engines and start the component upon trigger/area events.

Unity: Uses a collider with Is Trigger enabled for the trigger events.

Trigger Enter #

Starts when something enters the trigger/area.

Trigger Exit #

Starts when something exits the trigger/area.

Trigger Stay #

Starts when something stays in the trigger/area.

Interaction Controller Component #

The Interaction Controller component is used to start Interact start types.

An interaction is available to the player while it is within the player’s interaction controller’s bounds (area).

You can add multiple interaction controllers to the player and have them interact with different things based on organizer types. E.g. use a small area for talking to NPCs close up while allowing to pick up items all around the player.

Unity: Needs a collider with Is Trigger enabled for the area. For physics detecting something entering the trigger, a Rigidbody component has to be involved as well.

Selectable Object Component #

The Selectable Object component is used to mark an object as selectable.

This is used by the Selectable Object type interaction control, where you interact with the currently selected object instead of an object within the interaction controller.

Machine (Schematic) Component #

The Machine (Schematic) component is used to start a schematic.

The machine’s gizmo icon changes depending on the first added start type.

Additional settings further specify the schematic’s execution.

Execution Type #

The Execution Type defines how a machine is executed:

  • Single
    The machine can be executed once at the same time.
    I.e. it can’t be executed again while it’s already running.
  • Multi
    The machine can be executed multiple times at the same time.
    Each execution will run it’s own, separate instance of the schematic.
  • Blocking
    The machine can be executed once at the same time.
    Other Blocking machines can’t be executed while the machine is running and the machine can’t start while another Blocking machine is running.
    In short, only one Blocking machine can run at a time.

Priority #

You can optionally prioritize a machine’s schematic, this will update a schematic before other schematics. When multiple schematics are prioritized, they’re order descending by their Priority number, i.e. the schematic with the highest priority number will be updated first.

However, prioritized machines will start playing the schematic in the next frame, not in the frame they’re started (as not prioritized machines do). This is due to waiting for all prioritized machines that are started in a frame and ordering them according to their Priority number. I.e. a priority machine ensures starting before other priority machines with a lower priority.

E.g. 3 auto machines start when a scene is loaded:

  • machine A, no priority
  • machine B, priority 0
  • machine C, priority 5

The machines will start playing the schematics in the following order:

  • machine A
  • machine C
  • machine B

Template Machine Component #

The Tempalte Machine component uses a machine template and automatically adds a Machine (Schematic) component matching the template’s setup during play.

The template’s setup is used when the scene was loaded or the object with the component is spawned. You can optionally add a delay to adding the template’s setup to the object.

Item Collector Component #

The Item Collector component is used to pick up items or access item boxes.

Collection Type #

The Collection Type setting defines if a single item or an item box is used.

How the UI for the item collection or item box access is displayed to the player is defined in the item collection settings.

Single Item #

Optionally spawns the prefab of the item that can be collected. Interaction with the prefab is also possible.

If multiple items are added, one of them is used randomly.

Single item collection uses a Scene ID to determine if an item has already been collected or not. The scene ID can be used either per scene or globally.

Item Box #

All added items are placed into an item box and can be collected. The player can also put items from the inventory into an item box.

Box collection uses a Box ID, which is always used globally and not per scene. The box ID can also be used to access the item box without an item collector, e.g. via schematics or Inventory Exchange menu screen parts. All item boxes using the same box ID will share their content.

Scene Changer Component #

The Scene Changer component is used to load a new scene.

Scene Load #

Depending on the engine you’ll have different scene load types available.

Unity #

The following scene load types are available:

  • Load Level
    Closes all currently loaded scenes and loads a scene.
  • Load Level Additive
    Adds the scene to the currently loaded scenes.
  • Load Async
    Closes all currently loaded scenes and loads a scene asynchronously in the background.
  • Load Async Additive
    Adds the scene to the currently loaded scenes and loads it asynchronously in the background.

Player Spawning #

Optionally spawn the player at a defined Spawn Point, a fixed position or a previously remembered position in the scene (Scene Position).

Screen Fades #

Loading a scene can fade the screen during load (fade out before load, fade in after load).

You can optionally override the default screen fade settings defined in the UI settings.

Change After Load #

You can optionally change variables after loading the new scene.

Shop Interaction Component #

The Shop Interaction component is used to open a shop.

Alternatively, you can also use a schematic to open a shop, e.g. adding a bit of dialogue before or after shopping.

Optionally use a Shop ID to identify the shop and save it’s content. Shop IDs are used globally.

A shop can optionally belong to a faction to impact prices based on faction standings.

Area Component #

The Area component is used to change the current area information of the game.

A typical setup will use Trigger Enter or Ready start types to change the area either when the player enters the object’s area or when loading the scene.

Unity: Uses a collider with Is Trigger enabled to define the area for trigger start types.

Music Player Component #

The Music Player component is used to change the currently playing music.

A typical setup will use Trigger Enter or Ready start types to change the music either when the player enters the object’s area or when loading the scene.

Unity: Uses a collider with Is Trigger enabled to define the area for trigger start types.

Learn more about playing music in this documentation.

Save Point Component #

The Save Point component is used to access the save point dialogue or save game menu.

Learn more about save games in this documentation.

Variable Changer Component #

The Variable Changer component is used to change variables.

You can also change variables using schematics and other features, but sometimes you just want to change a variable without doing anything else.

E.g. the ORK 4 Unity Quickstart 3D tutorials use variable changes to set the name of the battle scene when loading the World or Dungeon scenes.

Table of Contents
  • Start Types
    • Animation (Unity)
      • Animation Event
      • Animation Event (float)
      • Animation Event (int)
      • Animation Event (string)
      • Animator IK
      • Animator Move
      • Joint Break
      • UI Game Object
    • Application (Unity)
      • Focus Gained
      • Focus Lost
      • Paused
      • Quit
      • Unpaused
    • Auto
      • Change Notification
      • Destroy
      • Disable
      • Enable
      • Ready
      • Scene Loaded
    • Collision
      • Collision Enter
      • Collision Exit
      • Collision Stay
      • Particle Collision
    • Interaction
      • Drop
      • Input Key
      • Interact
      • Mouse Down
      • Mouse Drag
      • Mouse Enter
      • Mouse Exit
      • Mouse Over
      • Mouse Up
      • Mouse Up As Button
    • None
    • Renderer (Unity)
      • Became Invisible
      • Became Visible
      • Post Render
      • Pre Cull
      • Pre Render
      • Render Object
      • Will Render Object
    • Tag
    • Tick
      • Late Tick
      • Physics Tick
      • Tick
    • Trigger
      • Trigger Enter
      • Trigger Exit
      • Trigger Stay
  • Interaction Controller Component
  • Selectable Object Component
  • Machine (Schematic) Component
    • Execution Type
    • Priority
  • Template Machine Component
  • Item Collector Component
    • Collection Type
      • Single Item
      • Item Box
  • Scene Changer Component
    • Scene Load
      • Unity
    • Player Spawning
    • Screen Fades
    • Change After Load
  • Shop Interaction Component
  • Area Component
  • Music Player Component
  • Save Point Component
  • Variable Changer Component
Sitemap
  • ORK 4 BETA
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (73)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (156)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!