x


Behaviours in DLLs and Prefabs

Hi,

Here's the scenario.

I've got a dll, Test1.dll that contains a behaviour, testBehaviour.cs. I've then got a prefab, TestPrefab.prefab that uses testBehaviour.cs. Finally, I've got another dll, Test2.dll, that references Test1.dll in the project.

I create a unity package that contains Test1.dll and TestPrefab.prefab named First.unitypackage.

I create a second unity package that contains Test2.dll and Test1.dll (Test1.dll is needed because it is being used within Test2.dll), named Second.unitypackage.

Now here is the problem. If I import First.unitypackage into the scene, the behaviour that is referenced on the prefab gets resolved correctly. However, if I import the Second.unitypackage first, and then import First.unitypackage, the behaviour is not resolved correctly and comes up with a missing behaviour on the prefab.

Some information

  • The dll versions are the same, i.e. both the Test1.dll that is build by itself and the Test1.dll that is build due to Test2.dll build process.
  • The prefab is identical, both when it fails to resolve and when it does resolve the behaviour.
  • The location of the dll is identical. They are in an Assemblies folder within the project hierarchy.

Any suggestions?

more ▼

asked Jun 27 '12 at 07:18 AM

omgitsleo gravatar image

omgitsleo
0 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1259
x234
x29

asked: Jun 27 '12 at 07:18 AM

Seen: 318 times

Last Updated: Jun 27 '12 at 07:18 AM