Skip to content

Missing ProjectSettings.Android.optimizedFramePacing() in Unity 2020.3 #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yaoyorozu-tech opened this issue Aug 21, 2023 · 0 comments
Assignees

Comments

@yaoyorozu-tech
Copy link

Describe the bug

An exception occurred in 'optimizedFramePacing' while running the analysis.

ArgumentException: Method UnityEditor.PlayerSettings+Android.optimizedFramePacing() not found in assembly UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null!
UnityEditor.Macros.MethodEvaluator.Eval (System.String assemblyFile, System.String typeName, System.String methodName, System.Type[] paramTypes, System.Object[] args) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Macros/MethodEvaluator.cs:68)

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project using Core-2D template in Unity2020.3.5f.
  2. Add package according to https://docs.unity3d.com/Packages/Installation/manual/upm-ui-quick.html
  3. Switch Platform for Android.
  4. Select Platform:Android and run
  5. See error

Expected behavior

Optimized Frame Pacing itself has been around since 2019.2, but as of 2020.3 there is no API to access it from code.

The Project Auditor settings file (Data/ProjectSettings.json) defines it as available from 2019.2, so trying to reference it will throw an exception.

It's working fine on 2022.3 and 2021.3.

Information (please complete the following information):

  • OS: macOS Ventura 13.5
  • Unity version : 2020.3.5f1
  • Project Auditor version : 0.10.0
@mtrive mtrive self-assigned this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants