Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Use assembly-csharp code in a custom assembly

Discussion in 'Scripting' started by DevDunk, Mar 6, 2023.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    3,497
    I am using assembly definitions and want to reference scripts from an asset (in assembly csharp) from my script with it's own assembly.
    It gives me an error that the .Player is not available in VS and in Unity tells me that the namespace cant be found.
    Is there a way to fix this or do I have to give up for assembly defenitions? (I am making an asset, so can't add assembly defs to my plugin integrations)

    upload_2023-3-6_14-41-29.png

    Using Unity 2021.3.20 and VS 2022