This only works with libraries that don’t have MonoBehaviours (or, more specifically, classes in the library that aren’t MonoBehaviours), because all assets Unity refers to in serialized files have to be registered with the AssetDatabase in order for them to be properly referenced when deserialization happens. If your class library does not have any MonoBehaviour scripts, then it is possible to stream it from an website using the method AngryAnt used in his experiment Downloading the Hydra. Leave the assembly as a part of the project Don’t worry, all your prefabs that link with the library classes will still properly link. You could tackle this in one of two ways: The other reason is that the whole Asset Bundle mechanism mirrors what happens to non-script assets when you build them with a player - when you build, scripts become. Class libraries cannot be part of an Asset Bundle, partially because its a security risk to inject code onto your application from the internet (viruses, anyone?).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |