at first, thanks to Eric5h5 for sharing his "fade"-class in the unifycommunity.
I would like to using it for my unity-iphone project and there i want to fade between to color-values.
I created a new "Standart Assets"-Folder and paste that script in a "Scripts"-folder and then added the fade-script to an gameobject.
Then i added the following code:
newColor = colors[counter]; // counter iterates through an color-array
StartCoroutine(Fade.use.Colors(mat.renderer.sharedMaterial, currentColor, newColor, 1f, EaseType.InOut));
currentColor = mat.renderer.sharedMaterial.color;
If i start using my project with my iphone and the unity remote-app, it works great.
Then i built & run the project to watch it on my iphone. Then the build dont run and i get the following xcode-console output:
-> applicationDidFinishLaunching() Failed to load AOT module
while running in aot-only mode because
a dependency cannot be found or it is
out of date.
Debugger stopped. Program exited with
status value:1. Unity-iPhone exited
with status 1
The error only appears if i use the code below, if i uncomment it and use my "old" code, it works without fading.
mat.renderer.sharedMaterial.color = colors[counter];
So it would be great to know if someone could help me, please.
Thanks for your time.
Answer by Eric5h5
Feb 26, 2010 at 05:18 PM
Ok, thanks for that info. I will rewrite it and test it.
If you successfully rewrite it, you should post it on the Wiki so other users can use it, as well. Make sure your code is clean. :)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Unity Invoke method delay factor vary device to device
AnimationEvent not reliably triggerd on iPhone
The name 'Joystick' does not denote a valid type ('not found')
Animation not playing when returning to a previous loaded scene