Works fine whether I play in editor, or as standalone, but as soon as I launch, package or deploy it in any way, things go weird.