# Unity + EOS: game can't detect that the game is running through Epic Game Store. 

**URL:** <https://forums.unrealengine.com/t/unity-eos-game-cant-detect-that-the-game-is-running-through-epic-game-store/2858309>\
**Category:** Developer Portal\
**Tags:** epic-online-services, question\
**Created:** [May 23, 2025, 1:26pm UTC](https://forums.unrealengine.com/t/unity-eos-game-cant-detect-that-the-game-is-running-through-epic-game-store/2858309 "2025-05-23T13:26:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 23, 2025, 1:26pm UTC](https://forums.unrealengine.com/t/unity-eos-game-cant-detect-that-the-game-is-running-through-epic-game-store/2858309/1 "2025-05-23T13:26:59Z")

</div>

Hello, guys!

I’m trying to determine if the game was run through EGS:

_string[] cmdArgs = System.Environment.GetCommandLineArgs();_

_bool isRunningOnEpic = cmdArgs.Any(arg =\> arg.Contains(“EpicPortal”));_

_if (isRunningOnEpic)_

_{_

_…_

_}_

For some reason _isRunningOnEpic_ is false. Am I doing something wrong?

I’d like to try to simulate a launch via EGS, but I don’t know if EGS can do that. Is it possible?

So far I’ve simulated a launch with my custom command line arguments and with my arguments everything worked.

I’ve submitted the game for validation, but it doesn’t pass validation because of this bug.

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [June 5, 2025, 3:58pm UTC](https://forums.unrealengine.com/t/unity-eos-game-cant-detect-that-the-game-is-running-through-epic-game-store/2858309/2 "2025-06-05T15:58:56Z")

</div>

Yes you can test your game from the launcher, see: [https://dev.epicgames.com/community/learning/knowledge-base/4VmRv/epic-online-services-how-can-i-have-a-playtest-with-my-epic-games-store-game-before-releasing-it](https://dev.epicgames.com/community/learning/knowledge-base/4VmRv/epic-online-services-how-can-i-have-a-playtest-with-my-epic-games-store-game-before-releasing-it).

I’d recommend having logging enabled in your shipping build and log the command line parameters and values passed by the launcher (I don’t know if Unity does this by default).
