Comments (7)
Thanks for using this!
Adjust the scale in the Output Options.
This is also the multiplier for the resolution of the image.
It is recommended that you set Artboard size to the target resolution.
If you do so, the Scale option is 1.
from xuidunity.
Hi!
First and foremost, thanks for the Quick response!
Unfortunately though, this that you suggested doesn't work:
This is the image we get when we import manually to Unity (we exported from Adobe XD with XUID Unity Export, and imported by hand to unity):
We have tried to export at bigger scales (x2 or x3) but a visual glitch appears when we import to Unity with the XUID Unity Importer:
If we do what you suggested (setting the artboard to target resolution), the result within Unity is the following (again with XUID Importer):
It sort of becomes "squared". In all cases, by importing by hand the visual glitch doesn't appear.
Its important to note that the problem lies when we import into Unity, not when we export from Adobe XD. When we export from Adobe, the image has a good resolution and no visual glitches. These glitches appear when we import into Unity.
Again, thanks for your time!
from xuidunity.
Thank you for trying.
Can I get some sample data?
I want the XD file or the Unity project. I want both if possible.
I am thinking about the following possibilities
- Problems when importing. (auto 9slice)
- Compression for the target device.
from xuidunity.
Hi! Once again, thanks for the Lightning quick response!
Unfortunately, Im sorry to say that I cannot share the projects due to privacy issues...
However we did get into investigating a bit.
We tried different target devices and compressions. The problem remains...
We tried creating a brand new Unity Project and (using the same Adobe XD export we used before, the one with your tool), installed XUID (same version) to it and then doing a Clean Import.
The result is good! Which unfortunately means there is something wrong with importing into our main Unity Project...
We have compared the canvas settings, project settings and the sprite import settings between our main project and the new project, and all values are the exact same.
Now we are wondering if you could tell us which things to look for that you suspect might be causing the problem to help us resolve this. Any Unity Project Settings that XUID uses in its logic to do the import that might affect the auto 9slice or the compression.
Other things we noticed, in the faulty unity project sprites are imported with different borders and lower resolutions.
Thanks again for your time!
from xuidunity.
Glad to see the good results!
Here's what I predicted about the cause.
- For auto 9slice, I thought there might be some unknown behavior. I think this possibility is unlikely.
- I noticed that in the bad image the corners are gray.
I think the Texture compression option may have made the alpha values less accurate.
I tried to get close to the bad images.
- Selected a sprite image.
- Configure it in Inspector.
- Reduce the MaxSize to lower the resolution.
- By changing the Format, the transparency disappeared.
(I thought that Alpha going to 1 bit would make for a bad image.)
Even if the conversion is correct, get a bad image depending on the settings.
from xuidunity.
Hi! Excuse our disappearance, holidays came and went but now we are back.
I played with the settings you pointed at on both projects, the faulted one and the clean one.
In the faulted project, no changes in the format would improve the quality:
In the test project (the one with good importing) lowering quality and changing formats produces a much more meaningful effect:
And as you can see, in the first one the gray corners are sort of like... part of the texture. Really weird.
Im not sure how to proceed...
Are there other project-related things that might be affecting XUID that I should be aware of?
from xuidunity.
I love the holidays too!👍
I've never had a problem with image importing going wrong depending on the project settings.
So I am not sure what could be the cause.
- Check for DIFF in the .settings file.
- Copy the .settings file from a clean project
What about this way?
So just importing a PNG image with alpha into a failing project is not a problem?
By adding .image.no-slice, the layer will become an image and the 9slice process will be skipped.
from xuidunity.
Related Issues (11)
- XdUnityUIExport.xdx is not updated. HOT 1
- Make importing a non destructive operation HOT 15
- XD-Component status is not currently supported? HOT 1
- Can't import the package HOT 4
- Art boards starts with the same name and space are merged on export HOT 2
- Order of .content elements in scrollgroup is wrong HOT 2
- where is import folder,i can not find. HOT 1
- "Cannot select node outside the current edit context's scope" error HOT 1
- Missing an assembly reference
- Text Import Issue HOT 2
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 xuidunity.