GithubHelp home page GithubHelp logo

Comments (11)

keenanwoodall avatar keenanwoodall commented on May 13, 2024

Sorry to hear that! I'll do my best to get to the bottom of it. Can you walk me through the exact steps you took to install Deform?

from deform.

tkyleharrison avatar tkyleharrison commented on May 13, 2024

All I did was add this line to manifest.json:
"com.beans.deform": "https://github.com/keenanwoodall/Deform.git",

from deform.

tkyleharrison avatar tkyleharrison commented on May 13, 2024

I'm able to add the various deform components to objects manually and it works. So far the UI is the only issue I'm seeing.

from deform.

keenanwoodall avatar keenanwoodall commented on May 13, 2024

Thanks for the info. I'll see if I can reproduce the error when I get home from work. What were the exact version numbers of Unity that you used?

from deform.

tkyleharrison avatar tkyleharrison commented on May 13, 2024

I'm using 2019.3.0f3. I also tried it on 2019.2.6f1 with the same error. Thanks for looking into it!

from deform.

keenanwoodall avatar keenanwoodall commented on May 13, 2024

Hmmm I made new projects on both versions of Unity, installed Deform as a package via the manifest file and was able to open and use the Creator Window without any issues.

It appears the exception that's getting thrown on your end happens when classes in a module cannot be loaded. I'm not sure why this is happening for you though.

Here's the things I'd recommend trying (some of which you may have tried already):

  • Change the Api Compatibility Level in your Project Settings
  • Change the Scripting Backend in your Project Settings
  • Uninstall/reinstall Deform
  • Restart the Editor
  • Restart the computer
  • Run Unity as Administrator
  • Install Deform in a blank project
  • Install Deform in a blank project on a different computer
  • Install Deform in 2019.2.17 (the latest official release at the time of this post)

If nothing changes after trying these things, try cloning the repo into your Packages folder (after removing it from the manifest), opening the CreatorWindow.cs file and pasting these two methods over the GetAllDeformerAttributes() method at the end of the file.

public static IEnumerable<DeformerAttribute> GetAllDeformerAttributes ()
{
	var assemblies = AppDomain.CurrentDomain.GetAssemblies ();
	foreach (var assembly in assemblies)
	{
		foreach (var type in GetLoadableTypes (assembly))
		{
			if (type.IsSubclassOf (typeof (Deformer)))
			{
				var attribute = type.GetCustomAttribute<DeformerAttribute> (false);
				if (attribute != null)
					yield return attribute;
			}
		}
	}
}

public static IEnumerable<Type> GetLoadableTypes(Assembly assembly)
{
	try
	{
		return assembly.GetTypes();
	}
	catch (ReflectionTypeLoadException e)
	{
		return e.Types.Where(t => t != null);
	}
}

I have no idea if it will fix anything since I cannot reproduce the error, but it's the best I can do.

If the error still persists I'm not sure I can do anything further without you sending me a repro. Apologies for the trouble this is causing you, but hopefully we can find a fix!

from deform.

tkyleharrison avatar tkyleharrison commented on May 13, 2024

We use unity assembly definitions to split our project into multiple assemblies. I suspect the issue is related to how we divide it up, but your change to CreatorWindow.cs fixed it!

Any chance this change will make it into the main branch? That would allow us to switch back to the package version :)

Thanks for your help!

from deform.

keenanwoodall avatar keenanwoodall commented on May 13, 2024

I'm glad it worked! I'll try and make a new release today. Does it look like all the deformers are present in the Creator Window?

from deform.

tkyleharrison avatar tkyleharrison commented on May 13, 2024

Yea, it's a long list with Normal, Noise, Mask and Utility sections. All the deformers I've tested are working.

The only minor issue I've noticed it Create Deformable comes in with a pink material since I'm using URP. Easy enough to swap out the material.

Thanks again for your help!

from deform.

keenanwoodall avatar keenanwoodall commented on May 13, 2024

I created another issue to look into allowing the user to change the default material here #31. If it's cloned into your Packages folder you can change it (I think), but I'm not so sure if it'll work if Deform is installed via git url in the manifest.

from deform.

keenanwoodall avatar keenanwoodall commented on May 13, 2024

Creator Window fix is in the newest release/on the master branch.

from deform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.