Modifying .mm files in generated Xcode project to improve iOS Unity applications

Hi all,

I’m using Unity (Personal) to build an iOS app.
To improve my application, I want to modify a function inside a Unity-generated .mm-file in the generated Xcode project.

(Specifically, I want to change the function “setCaptureFPS” inside the “CameraCaptureController” in the Unity-generated file “Classes/Unity/CameraCapture.mm” so that I get more video frames per second from the “WebCamTexture” on iOS - so I’m just improving the implementation generated here by Unity.)

My question is:
Am I allowed to do this, i.e., change a Unity-generated .mm-file to improve my iOS application?
I do not intend to distribute the modified .mm-file, it will just be used in my application.

Thanks for your help & best,
AndreZen

Yes, you can do that.

1 Like