I cant use Linq extension in runtime scripts
Welcome to Portals United! / Forums / Troubleshooting / I cant use Linq extension in runtime scripts
- This topic has 3 replies, 2 voices, and was last updated 1 day ago by
robert.malzan.
-
AuthorPosts
-
April 2, 2025 at 12:17 pm #1423
Hi
somehow it seems that I cant use System.Linq Extensions like (ToList(), First(), …)
I have the following usings in my code:
using System.Collections.Generic;
using System.Linq;Any idea how to solve this?
April 2, 2025 at 12:19 pm #1424Maybe this helps some…
{
“dependencies”: {
“com.nuro.processes”: “file:../../processes”,
“com.nuro.world-builder.asset-management”: “file:../../wb-asset-management”,
“com.nuro.world-builder.node-editor”: “file:../../wb-node-editor”,
“com.nuro.world-builder.plugin-core”: “file:../../wb-plugin-core”,
“com.nuro.built-in-assets”: “file:../../built-in-assets”,
“com.nuro.world-builder.runtime-scripting”: “file:../../wb-runtime-scripting”,
“com.paps.unity-toolbar-extender-ui-toolkit”: “https://github.com/Sammmte/unity-toolbar-extender-ui-toolkit.git?path=/Assets/Package”,
“com.unity.2d.sprite”: “1.0.0”,
“com.unity.ai.navigation”: “2.0.5”,
“com.unity.cloud.gltfast”: “6.10.1”,
“com.unity.editorcoroutines”: “1.0.0”,
“com.unity.ide.rider”: “3.0.34”,
“com.unity.ide.visualstudio”: “2.0.22”,
“com.unity.inputsystem”: “1.12.0”,
“com.unity.nuget.newtonsoft-json”: “3.2.1”,
“com.unity.recorder”: “5.1.2”,
“com.unity.render-pipelines.universal”: “17.0.3”,
“com.unity.sharp-zip-lib”: “1.3.9”,
“com.unity.test-framework”: “1.4.5”,
“com.unity.timeline”: “1.8.7”,
“com.unity.ugui”: “2.0.0”,
“com.unity.vectorgraphics”: “2.0.0-preview.25”,
“com.unity.xr.interaction.toolkit”: “3.0.7”,
“com.unity.modules.accessibility”: “1.0.0”,
“com.unity.modules.ai”: “1.0.0”,
“com.unity.modules.androidjni”: “1.0.0”,
“com.unity.modules.animation”: “1.0.0”,
“com.unity.modules.assetbundle”: “1.0.0”,
“com.unity.modules.audio”: “1.0.0”,
“com.unity.modules.cloth”: “1.0.0”,
“com.unity.modules.director”: “1.0.0”,
“com.unity.modules.imageconversion”: “1.0.0”,
“com.unity.modules.imgui”: “1.0.0”,
“com.unity.modules.jsonserialize”: “1.0.0”,
“com.unity.modules.particlesystem”: “1.0.0”,
“com.unity.modules.physics”: “1.0.0”,
“com.unity.modules.physics2d”: “1.0.0”,
“com.unity.modules.screencapture”: “1.0.0”,
“com.unity.modules.terrain”: “1.0.0”,
“com.unity.modules.terrainphysics”: “1.0.0”,
“com.unity.modules.tilemap”: “1.0.0”,
“com.unity.modules.ui”: “1.0.0”,
“com.unity.modules.uielements”: “1.0.0”,
“com.unity.modules.umbra”: “1.0.0”,
“com.unity.modules.unityanalytics”: “1.0.0”,
“com.unity.modules.unitywebrequest”: “1.0.0”,
“com.unity.modules.unitywebrequestassetbundle”: “1.0.0”,
“com.unity.modules.unitywebrequestaudio”: “1.0.0”,
“com.unity.modules.unitywebrequesttexture”: “1.0.0”,
“com.unity.modules.unitywebrequestwww”: “1.0.0”,
“com.unity.modules.vehicles”: “1.0.0”,
“com.unity.modules.video”: “1.0.0”,
“com.unity.modules.vr”: “1.0.0”,
“com.unity.modules.wind”: “1.0.0”,
“com.unity.modules.xr”: “1.0.0”
}
}April 2, 2025 at 1:05 pm #1426It seems the relevant important is somehow under:
“com.nuro.world-builder.runtime-scripting”: “file:../../wb-runtime-scripting”I guess it is necessary to know how the runtime compiler works and which includes and dependencies it has..
April 3, 2025 at 4:08 pm #1434It turns out, the Runtime Compiler has a “White List”. Any usings of namespaces which are not in the White List will be purged. This is to ensure nobody calls dangerous commands which may harm the device/computer it’s running on. Think of the harm you could do with “using System.IO”…
Linq will be in the White List in our next release. We also plan to publish this list so everyone can check against it or request that we expand it.
-
AuthorPosts
- You must be logged in to reply to this topic.