Detect when the Player starts

Is there a way to detect when the player starts (ie. the user presses the play button on the editor) from an exteded Editor class ?

Add an Awake function to a script - this gets called when the game starts. Once you have that functicon, if you just want to execute code when starting up in the editor, you can check the Application.isEditor property.