aws / amazon-gamelift-plugin-unity

The Amazon GameLift Plugin for Unity contains libraries and native UI that makes it easier to access GameLift resources and integrate GameLift into your Unity game. You can use the GameLift Unity Plugin to access GameLift APIs and deploy AWS CloudFormation templates for common gaming scenarios.
https://aws.amazon.com/gamelift/getting-started/
Apache License 2.0
84 stars 16 forks source link

Hotfix for missing .app app for local testing in Mac #77

Closed xmiao2 closed 8 months ago

xmiao2 commented 1 year ago

In Setting up for local testing, the instruction asks to look for an .app file. However, starting from certain version of Unity, the build executable no longer contains .app.

You can still find the build executable from your build output directory, i.e. in the same directory that contains "Data", "MonoBleedingEdge", "Plugins" and "UnityPlayer.dylib" files.

However, this is not selectable in the Plugin UI because it requires the file to contain the .app extension. You can temporarily work around this by following these steps:

  1. Find the LocalTestWindow.cs file within unity assets
  2. In line 122, change “exe,app” to “”

Example:

From:

_labelServerPath, _model.BuildExecutablePath, "exe,app", _titleServerPathDialog,

To:

_labelServerPath, _model.BuildExecutablePath, "", _titleServerPathDialog,
AWSJackson commented 8 months ago

This was fixed in an earlier version and provided as a notice for those who had not upgraded. I'm closing out this issue as it's quite old now and we've since released a complete overhaul of the plugin.