B
B
Blind_man2021-12-24 15:03:39
Unity
Blind_man, 2021-12-24 15:03:39

How to make Visual Studio 2019 see monobehaviour classes? (without opening via Unity)?

Updated VS19 at her suggestion. And all projects stopped recognizing monobehaviour and a bunch of other things... After a test opening through Unity, the open project returned to normal. And VS sees everything now even when opening the project purely through it.

But here's how to make it so that VS would see the project without reopening it? Is "using UnityEngine;" not enough?

(it will be useful for me because from time to time I look at different OpenSource code, without looking at what is there in the Unity project itself. Yes, and I want to update more calmly ... without restarting a penny of projects for three or five minutes each ... '; .;')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-24
@vabka

without opening via Unity

no way
Is "using UnityEngine;" not enough?

not enough. The studio does not know where (from which dll) to get types.
y. Yes, and I want to calm down

Updating is not such a frequent process to reason like that.
that from time to time I look at different OpenSource code

You can just watch without a studio. Well, or just ignore these errors - all the same, you won’t collect it through the studio.
If you just want to access types from unity in non-unit projects, install this package: https://www.nuget.org/packages/Unity3D.UnityEngine/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question