Jump to content

[SOLVED] The type or namespace name "Unigine" could not be found


photo
Go to solution Solved by arizmenda,

Recommended Posts

Posted

My editor started with the same error as this user. I have successfully installed the link in VsCode. Net8, and it is possible to launch the console directly from the Sln file, but an error still occurs in the editor

 

image.thumb.png.930d39460b419c80e60d343be20cc104.png

image.png.a7fef66fa4c1764aeee18a71e9485a2d.png

  • Solution
Posted

Hi, @perfectsummer!

As far as I understand, you get these errors when you build the app via Editor, is it correct?

If so, you can change configuration in Editor (just like in VS) by pressing on the gear icon to the right of the run button. That should make start of the project clean.

image.png

If that wouldn't work, may I ask you to provide some additional info? That should be enough for the start:

- Your current SDK Version

- Full editor_log.txt file. You can find it in bin folder in the project directory. 

- List of installed components in Visual Studio. You can check the list in Visual Studio Installer.

Thanks!

Posted

Thank you, that was successfully resolved, I have a question, why do projects have float type and double type? What's the difference?

image.png

  • Like 1
Posted
Quote

I have a question, why do projects have float type and double type? What's the difference?

In short, this is a precision number formats.

Float typically uses 32 bits of memory, providing approximately 7 decimal digits of precision. Operations on float are generally fast and require less memory, which is crucial for physics simulations, graphics rendering, and general game logic. All those can be adequately handled with float. The reduced precision is often acceptable given the performance benefits.

Double typically uses 64 bits of memory, providing approximately 15-16 decimal digits of precision. On the other hand, operations on double are slower and consume more memory compared to float. Usually, double precision is used when higher precision is required, such as in scientific simulations, financial calculations, or when dealing with very large or very small numbers where precision is critical.

Be sure to check the article on our website to see more details:

https://developer.unigine.com/en/docs/2.19/code/double_precision/?rlang=cpp

Also be cautious when coding. For instance, your code would be different when programming Math Common Functions in double (there would be a hint on the top of the page).

https://developer.unigine.com/en/docs/2.19/api/library/math/cs/mathcommon?rlang=cs

image.png

 

 

  • silent changed the title to [SOLVED] The type or namespace name "Unigine" could not be found
×
×
  • Create New...