Skip to content

Instantly share code, notes, and snippets.

@phi-lira
Created July 8, 2020 20:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phi-lira/ccc01e5f5b54e3bf624abd90ef02e373 to your computer and use it in GitHub Desktop.
Save phi-lira/ccc01e5f5b54e3bf624abd90ef02e373 to your computer and use it in GitHub Desktop.
Run XCode Capture from Unity
1. Create a new XCode Metal (library) project.
2. Edit Scheme. Product->Scheme->Edit Scheme
3. Run, Info tab, and point to your application
E.g. /Application/Unity/Hub/Editor/Unity.app
4. Run, Arguments tab to add cmdline arguments
E.g. -projectPath "/Users/name.name/projects/MyProject"
5. Run, Options tab, set to GPU Frame Capture to Metal
6. Run the project and click the camera icon from XCode to take a capture
@nejurgis
Copy link

nejurgis commented May 8, 2021

Thanks his helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment