How do I enter playMode through editor class?

.or find a way to play animation or preview it in editMode.
the best solution is changing the serialization of animationclip file, simply append a float var representing clip speed.and read it when game is in playMode…

To preview an animation in edit mode, just open the Animation window