Skip to content

Add support for detecting Unity CoreCLR and IL2CPP on .NET - #948

Open
jeanclaudegrenier wants to merge 1 commit into
SteamDatabase:mainfrom
jeanclaudegrenier:unity/add-coreclr-detection
Open

jeanclaudegrenier wants to merge 1 commit into
SteamDatabase:mainfrom
jeanclaudegrenier:unity/add-coreclr-detection

Conversation

@jeanclaudegrenier

Copy link
Copy Markdown

SteamDB app page links to a few games using this

Unity just released an alpha for Unity 7 using CoreCLR, to our knowledge no games have been published with CoreCLR/il2cpp on .net bcl yet. We wanted to land this change as early as possible so we can tell when such games do start landing.

Brief explanation of the change

Adds two SDK detections for Unity's .NET (CoreCLR) runtime:

  • SDK.UnityCoreCLR: Unity.Private.Scripting.dll in _Data/Managed/ (or Contents/Resources/Data/Managed/ on macOS). It only ships in players built with the CoreCLR scripting backend. Copies in _BackUpThisFolder_ButDontShipItWithYourGame/ and Library/Bee/ are deliberately not matched.
  • SDK.UnityIL2CPPNet: il2cpp_data/Resources/System.Private.CoreLib.dll-resources.dat. It only ships in IL2CPP players built against the .NET class libraries, and complements the existing SDK.UnityIL2CPP.

SDK.UnityCoreCLR matches Unity.Private.Scripting.dll in the player's
<Game>_Data/Managed (or macOS Contents/Resources/Data/Managed) folder,
which only ships with the CoreCLR scripting backend.

SDK.UnityIL2CPPNet matches il2cpp_data/Resources/
System.Private.CoreLib.dll-resources.dat, which only ships with IL2CPP
builds made against the .NET class libraries.
Comment thread rules.ini
trueSKY = (?:^|/)TrueSky(?:PluginRender_MT|PluginRender_MD|UI_MD)\.dll$
Ultraleap = (?:^|/)LeapC?\.dll$
UnityBurst = (?:^|/)lib_burst_generated\.(?:dll|so|bundle)$
UnityCoreCLR = (?:^|/)(?:[^/]+_Data|Contents/(?:Resources/)?Data)/Managed/Unity\.Private\.Scripting\.dll$

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at the generated test strings, this regex isn't great
just looking for Managed/Unity.Private.Scripting.dll isn't enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

2 participants