Blog

Unity iOS Basics

https://docs.unity3d.com/Manual/iphone-basic.html

This section covers the most common and important questions that come up when starting to work with iOS.

I’ve just received iPhone Developer approval from Apple, but I’ve never developed for iOS before. What do I do first?
A: Download the SDK, get up and running on the Apple developer site, and set up your team, devices, and provisioning. We’ve provided a basic list of steps to get you started.

Can Unity-built games run in the iPhone Simulator?
A: No, but Unity iOS can build to iPad Simulator if you’re using the latest SDK. However the simulator itself is not very useful for Unity because it does not simulate all inputs from iOS or properly emulate the performance you get on the iPhone/iPad. You should test out gameplay directly inside Unity using the iPhone/iPad as a remote control while it is running the Unity Remote application. Then, when you are ready to test performance and optimize the game, you should publish to iOS devices.

How do I work with the touch screen and accelerometer?
A: In the scripting reference inside your Unity iOS installation, you will find classes that provide the hooks into the device functionality that you will need to build your apps. Consult the Input page for more information.

My existing particle systems seem to run very slowly on iOS. What should I do?
A: iOS has a relatively low fillrate. If your particles cover a large portion of the screen with multiple layers, it will kill iOS performance even with the simplest shader. We suggest baking your particle effects into a series of textures offline. Then, at run-time, you can use 1–2 particles to display them via animated textures. You can get ok results with a minimum amount of overdraw this way.

Can I make a game that uses heavy physics?
A: Physics can be expensive on iOS as it requires a lot of floating point number calculations. You should completely avoid MeshColliders if at all possible, but they can be used if they are really necessary. To improve performance, use a low fixed framerate using Edit->Time->Fixed Delta Time. A framerate of 10–30 is recommended. Enable rigidbody interpolation to achieve smooth motion while using low physics frame rates. In order to achieve completely fluid framerate without oscillations, it is best to pick a fixed deltaTime value based on the average framerate your game is getting on iOS. Either 1:1 or half the frame rate is recommended. For example, if you get 30 fps, you should use 15 or 30 fps for fixed frame rate (0.033 or 0.066)

Can I access the gallery, music library or the native iPod player in Unity iOS?
A: Yes, if you implement it. Unity iPhone supports the native plugin system, where you can add any feature you need – including access to Gallery, Music library, iPod Player and any other feature that the iOS SDK exposes. Unity iOS does not provide an API for accessing the listed features through Unity scripts.

What kind of performance impact will UnityGUI make on my games?
A: UnityGUI consumes more resources when more controls are used. It is ideal to limit your use of UnityGUI to game menus or very minimal GUI Controls while your game is running. It is important to note that every object with a script containing an OnGUI() call will require additional processor time – even if it is an empty OnGUI() block. It is best to disable any scripts that have an OnGUI() call if the GUI Controls are not being used. You can do this by marking the script as enabled = false.

Any other tips for using UnityGUI?
A: Try using GUILayout as little as possible. If you are not using GUILayout at all from one OnGUI() call, you can disable all GUILayout rendering using MonoBehaviour.useGUILayout = false; This doubles GUI rendering performance. Finally, use as few GUI elements while rendering 3D scenes as possible.

RockIT Repairs Fredericksbur

AT ROCKIT REPAIRS “WE FIX IT”:

Cell Phone Repair in Fredericksburg, Va. – We repair cracked screens, charging ports, batteries, microphones, speakers and offer water damage services on all models of cell phones.

Laptop Repair in Fredericksburg, Va. – We repair laptop screens, battery/charging issues, speed optimization, spyware removal, virus removal, hard drive upgrades and more.

Computer Repair in Fredericksburg, Va. – We repair computer viruses and malware, speed optimization , processor and video card upgrades. We also offer data recovery on hard drives.

RockIT Repairs Fredericksburg is open 7 days a week.
Mon-Sat 10-7 and Sun 12-5.
Call 540-412-8824 for more information.
Visit our store at 1319 Lafayette Boulevard #300, Fredericksburg, Va. 22401

Build on Windows – deploy to iOS

Hi all,

I am brand new to Unity. Before I get into the development, I want to be sure I can build and deploy. I appreciate any help. I have looked though the Unity forums (note Answers is down!) and the Google, but can’t find any help.

I have a PC (Windows 10) and a Mac (Yosemite). I want to build on the PC and just use the Mac to build, debug, and deploy to iTunes.

I have an iTunes account. I can build, debug and publish using XCode (and Xamarin on the PC).

My targets will be iOS, Android, and maybe PC.
I am doing this just for fun. No plans to make money!

I can build and run (on an iOS device) from the Mac. I can build and run a Windows app on the PC.

I am using this Unity documentation as reference: http://docs.unity3d.com/Manual/iphone-BuildProcess.html

When I build on the PC (iOS target), I am copying the build folder to the Mac and opening it in XCode. When I build that project, I get a Permision denied error (see attached screenshot.)

So, is there a better process for coding on the PC and building on the Mac. If I am on the correct track, can someone help with this error.

Getting started with iOS development

Building games for devices like the iPhone and iPad requires a different approach than you would use for desktop PC games. Unlike the PC market, your target hardware is standardized and not as fast or powerful as a computer with a dedicated video card. Because of this, you will have to approach the development of your games for these platforms a little differently. Also, the features available in Unity for iOS differ slightly from those for desktop PCs.