Jump to content

What event is fired when a ship (.craft file) is opened in the editor?


Recommended Posts

Hi,

I'm writing an "auto-autostrut" mod, and it works well enough except when a new ship is loaded (if the user clicks "Open" and then selects a craft).

I can't figure out which event is fired once the craft file has been loaded in the editor.

I have looked around in the API documentation but unfortunately in the 

GameEvents

 and 

EditorLogic

 classes I can't find anything.

Any help is much appreciated.

Link to comment
Share on other sites

Ooh thank you! onEditorLoad is the correct event. I remember seeing it when looking at the API but I thought it was triggered when the editor scene was done loading...

Also thanks for the link that shows the GameEvents extension possibilities, that is pretty useful and cool to know about

edit: thanks again lol I spent a few hours on this the other day

Edited by UnityNewb
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...