Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
invisage13's avatar
invisage13
Honored Guest
6 years ago

Scripts in Oculus folder cant reference other scripts

I understand this is probably the case of the Oculus developers setting up an assembly definition file so that their scripts compile first, but can anyone confirm 100% why it is that all the scripts in the Oculus folder cannot reference any scripts outside it?

Thanks!

1 Reply

Replies have been turned off for this discussion
  • Assemblies get compiled into separate C# DLLs. You can reference other DLLs in the .asmdef files (via Unity inspector).
    You could also try to delete the .asmdef, this way all the scripts will become part of your main assembly (I haven't tried this, make sure you can revert).