Quantcast
Channel: Questions in topic: "assemblies"
Browsing latest articles
Browse All 145 View Live

How to keep Unity Editor TCP client and Tcp Server static variables when...

Hey, I am trying to build a tcp server on Unity Editor to deal with some request like loading scene and play/stop the game. This server works perfectly in edit mode, but will lose my static variables...

View Article



Keep assemblies in separated dll instead of GameAssembly.dll

Hello team ! I'de like to use the assemblies not only to reduce the compile time of the script during development but also to reduce the initial load time of the application on console when the project...

View Article

Where is the Definition for Unity AsmDef Files?

I'm trying to find the definition for the asmdef schema. The only documentation I have been able to find is the [Assembly Definition File...

View Article

Adding assembly reference in visual studio causes error in unity

I added a reference in visual studio to the System.Web.Extensions assembly. When I head back to unity I get an error saying "The type or namespace name 'Script' does not exist in the namespace...

View Article

csc.rsp works in editor but throws an error when building

Hey, for a current project I have to scale the byte/color array of an image, therefore I found the easiest way to do that is using System.Drawing (if somebody has a better solution I am open for it...

View Article


Best way to preserve a class from Code Stripping

What is the best way to preserve a class from code stripping if i still want the process to run over the rest of an assembly. I have tried putting the preserve attribute at the top of a class as well...

View Article

IL2CPP mod support

I have some very basic mod support that loads DLLs from a specific folder as Assemblies and inspects it's types. If it finds an "IMod", it calls it's respective Awake() method. I will spare you the...

View Article

missing assembly references on new project?

Hi, I get this error 24 times in a almost new unity project (in the editor):...

View Article


How to keep .asmdef references when exporting a ".dll"?

I divided my project with different **.asmdef** in order to have different .dll. ---------- Now I want to import one of the dll (*Eg.* MyDll) created with **.asmdef** (copied from...

View Article


Error: "Copying assembly from 'Temp/UnityEngine.TestRunner.dll' to...

I have found other posts with this (or similar) issue, but none have had solutions that worked for me. Whenever opening a project in Unity 2020.1.3f1 (including brand new projects), I get the following...

View Article

Assembly-Csharp.Player ?

Hi developers, I have an anoying duplicate assembly with ".Player" ending for each assembly in my project. For example, in the project hierarchy(Visual Stuido/VSCode) you could see: >...

View Article

Compilers doesn't recognize Unity.UI references

Hi, I have since yesterday a really troubling mistake with compilers (VS and VS code) : they does'nt recognize references like UnityEngine.UI, EventSystems and TMPro. (CS0234 and CS0236) I have the...

View Article

accessing a class by interface requries reference to other unrelated...

Hey, been having some weirdness in my code, I think I get where the problem is but I wanted some clarification. I have 2 separate classes and 2 interfaces in a few different assemblies....

View Article


My projects can't find each other in Visual Studio

I'm currently using version 20.20.2.2f1 and the newest version of Visual Studio Community 2019 (16.8.4) In my project I'm using SimpleInput found in Asset Store. This has worked fine until yesterday...

View Article

Script won't update after first successful weaving with Mono.Cecil

I'm using Mono.Cecil to modify assemblies post compilation (I'm using [this][1] implementation of Mono.Cecil within Unity). For some reason, if I add a field to a type in an assembly, and the type of...

View Article


Compiling takes incrementally longer each time

Hi all, I'm in Unity 2020.2.1f1 Our team has noticed that each time the code recompiles: unity takes longer and longer to come out of it. The only thing we're able to do to alleviate it is to exit, and...

View Article

Type or namespace not found for Asset Store packages on Linux

System: Ubuntu 20.04 When cloning my project and opening it on a Linux PC, I get type or namespace not found error. This does not happen on Windows. The specific assets where that happens are SteamVR,...

View Article


Is it possible to include AOT compiled Unity Jobs in libraries?

Hello, For complicated reasons, we are building .unitypackages with the pre-compiled DLLs for some of our components (making use of post-build events to replace code with the compiled DLL containing...

View Article

Using a newer version of a library included in .net?

Hello, I'm trying to use the latest version of https://www.nuget.org/packages/System.Net.WebSockets.Client/ in my unity project built for .NET 4.x. To do so I am copying the DLL out of the package for...

View Article

Assebly definition dependent on asset store package without assembly definition

I'm planning to make a unity package which is dependent on an asset store package. This means i will need an assembly definition for my package which is dependent on the asset store package....

View Article

Fixing "The type or namespace name 'NUnit' could not be found" in 2020.3.17f1

Hello everyone, I just did a totally fresh install of Unity (and Unity Hub) on a totally new PC, but for every new project I try to create in 2020.3.17f1 gives me about 450 errors. All of the errors...

View Article


Editor script can't find a class outside of Editor folder

Hello all, So first off, I'm using the [GTF preview][1] package to create a dialogue sequence editor. I've done this in the old Graph View API, but the GTF offers so much more in the quality of life...

View Article


Create and reference assembly (.asmdef) files at editor-time

Hello, I'd like to import the *Universal Render Pipeline* package at runtime, then create a *UniversalRenderPipelineAsset.asset* file and assign it to the *Graphics Settings*. **What I'm trying to...

View Article

reload script assemblies is VERY Slow.

It takes around 2 Minutes to load all changes from code. one time it got stuck and went full 8 minutes... Why is this taking so long? My pc is clean comparing to other developers I saw, I got 8 GB Ram...

View Article

Can I make my own Metafiles and script assembly?

Hi everyone! Im building a pipeline that creates scripts for gameobjects I place inside a unity scene. At the current stage of the pipeline, Im able to create the a scene with gameobjects that have a...

View Article


Package .Runtime directory

I noticed a `.Runtime` directory in packages like [Burst][1] and from what it looks like it is used to get around conflicting with dependencies from other packages? I would like to do the same. I have...

View Article

New Unity projects won't compile Assembly Definition Files

Assembly for Assembly Definition File 'Packages/com.unity.visualscripting/Editor/VisualScripting.Flow/Unity.VisualScripting.Flow.Editor.asmdef' will not be compiled, because it has no scripts...

View Article

Auto referencing an asmdef from packages in predefined assembly

Hi, I am using a [glTFast][1] to load and export GLTF files. To export them at runtime I need to include their gltfFast.Export assembly definition in my assembly definition, [as per their...

View Article

Inheriting Assembly definitions

I have an external assembly definition which references all of the assemblies from downloaded packages. ![alt text][1] But my dialogue assembly still shows that it is missing some assembly definitions...

View Article



Reload Script Assemblies taking a very long time

I'm having issues with my Unity 2020.3.25f1 editor taking a very long time to ReloadAssemblies after every script recompile, about ~2 mins, and it's a serious productivity killer. ---------- I have a...

View Article
Browsing latest articles
Browse All 145 View Live




Latest Images