Comments (11)
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.
All I did was add this line to manifest.json:
"com.beans.deform": "https://github.com/keenanwoodall/Deform.git",
from deform.
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.
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.
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.
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.
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.
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.
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.
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.
Creator Window fix is in the newest release/on the master branch.
from deform.
Related Issues (20)
- Bend not applied to plane or any other "flat" model HOT 1
- Deformer are destroyed on play HOT 2
- How to make Elastic Deformalble work?
- Shading breaks HOT 3
- Undo always crashes the Unity HOT 1
- LatticeDeformer behaves differently in edit mode compared to play mode
- Error `Object reference not set to an instance of an object` on Editor stop HOT 2
- Editor bug in 2021.3.4 / Deform 1.2.1: Cannot add menu item HOT 8
- Unwanted dependencies HOT 2
- How to modify deformer's params in script? HOT 1
- CurveDisplaceDeformer exception
- Object with a lattice deformable are incorrectly translated in the world HOT 11
- Moving the lattice to the root of the scene causes exceptions HOT 2
- Applying a lattice deformer causes lattice point to be beside the mesh to deform.
- After removing from project, my physics are different? HOT 1
- Update the MeshCollider HOT 1
- How to do a mirror
- Access Lattice Points via Script HOT 3
- About LatticeDeformer.controlPoints HOT 1
- The following error occurs when importing in Unity 2022.3 : Unable to import newly created asset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deform.