Jump to content

What does DestroyRenderResources, MethodSwap and MethodImpl do?


photo

Recommended Posts

Posted (edited)

Good evening,

I'm watching the tutorial (https://www.youtube.com/watch?v=hHcUYQUlG00), but noticed that DestroyRenderResources, MethodSwap and MethodImpl isn't explained and couldn't find it in the documentation. What are they for?

 

Screenshot2024-07-08160428.png.72aaa97131ce8e9f155c6ada484fbd49.png

 

Edited by Sevdat
  • Sevdat changed the title to What does DestroyRenderResources, MethodSwap and MethodImpl do?
Posted

Hi, Sevdat!

The information in tutorial is based on 2.10 version of SDK, which is currently not supported.

To satisfy your curiosity here is link to the outdated documentation https://developer.unigine.com/en/docs/2.10/api/library/common/logic/class.worldlogic?rlang=cs 

But be sure to write components according to the actual one (you can switch the version on top of the page).

The detailed information about MethodImpl you can find here https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.methodimplattribute?view=net-8.0

Also check the C# Component Samples demo source code for instance https://developer.unigine.com/en/docs/latest/sdk/demos/csharp_component_samples/?rlang=cs

Thanks!

  • Like 1
×
×
  • Create New...