- Home /
AssetBundles coding
I'm looking into using AssetBundles with my Android Augmented Reality app and need a hand understanding a certain bit of coding.
I've been using this link: https://developer.vuforia.com/forum/faq/unity-how-can-i-augment-my-image-target-model as well as the Unity documentation to be able to link my Image Targets to the models once the AssetBundles have downloaded (as they can't contain scripts)
The piece of code I'm having trouble with is in the link above on line 38. I can't copy/paste it because it doesn't come up right. I believe its HTML coding? Anyway, when I copy/paste the whole script into a C sharp script in my project, it gives an error saying 'Unexpected symbol '<'
What does this line of code mean/what does it do?
Thanks
Answer by supernat · Mar 20, 2014 at 04:48 PM
Unless I'm mistaken, Asset Bundles can contain scripts but not on iOS. They should work on Android? I've never tried though.
Yes, this line is broken in their page. Since they named their variable www, then applied a period after it www. the parser broke it. It should be like (without the spaces if you prefer):
AssetBundle bundle = www . assetBundle;
Your answer
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
Csharp: how to make script wait for x seconds 3 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Using a pragma to disable AssetBundle errors 0 Answers
Does Scripting Jump exist? (How To use/write goto) 3 Answers