> For the complete documentation index, see [llms.txt](https://obvious-game.gitbook.io/soap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://obvious-game.gitbook.io/soap/scene-documentation/4_scriptableevents/firing-events-from-the-editor.md).

# Firing events from the editor

4\_ScriptableEvent

You don’t always need to use code to fire an event. Because it is a Scriptable Object, you can call it from the editor. If you select the prefab\_enemy\_event, you can see that the event example\_onEnemyHitPlayer is raised directly from a unity event.  &#x20;

!\[Text

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXdn1NRqb_xZYfNdsaSnC5gU5p4tCuMlNGP-CS_ufvtr19CxAHEnSmOGBnU6fko1EKYsabSU2HVV2PHhZI9brEf5Nc8h6bBlV7wgFYN9m_wIrhZOkZH8j4wTdR8sscJblveX3abGlErS51Q8fJagxgwZAjQ?key=npvPcHMgF_O4Om_5f5S8Bw>)

!\[Graphical user interface, application

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXekbbzoT7thF2jmwieks4pzLVPtafTScwpLOetiMWb0m_kEnTQ4bpjcgUKpkuZUPJA549w17GVclJPcv6Z6MDWIAX56elWcRaPVh_92Xn_SB06D8efno0yzrmFAIQryzumH2qIRAp_juNLB_k1Xl8X_ruM?key=npvPcHMgF_O4Om_5f5S8Bw>)

There is an EventListenerInt on the prefab\_player that listens to it. &#x20;

!\[Graphical user interface, text, application

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXclMbPdq22cBNg8FCLWBCU9OncLg8gMIo9QBP6VmFcgPaqkqLZQzDty7WgM6jAx1Nis7xJMLHiMSRTiiMDwMB96G2OFqoy4Tp3gzWzVgH689VdGJ6pLg180LkO9P3oo_JHiNh_1K6nEJFa0qNqGCbaG_-bK?key=npvPcHMgF_O4Om_5f5S8Bw)&#x20>;
