Comments (5)
Can you provide the following information?
- What is the React code used to generate this behavior?
- How are you providing the image source? If it is an asset inside Unity, what are your import settings? Can you send that asset and its
.meta
file? (Some compression, mipmap or filter mode settings can cause this behavior) - Does this happen without ReactUnity? Can you try creating a simple UGUI image and try to reproduce it?
from core.
- The code is quite long, but if I run the following in the index file:
import picture from "src/assets/icons/--primary-main/star-filled.png";
export function App() {
return (<image source={picture} style={{width: '100px', height: '100px'}}/>);
}
Renderer.render(<App />);
I get the same pixelated output:
- Can I access images from the "Assets" folder? Whenever I try to input a path that goes outside the "src" folder in the react project I get an error. The image is placed inside this src folder and it doesn't have a
.meta
file.
- If I place the same image as a 2D sprite in Unity it looks perfectly fine.
And thank you so much for the help!
from core.
I see. Image imports from file are imported with some default settings. I changed those settings to maximize quality now.
Fixed on main branch. I won't release a new version urgently as the problem only exists in development. In build, you have to go to the build folder and modify image import settings manually anyway.
from core.
Oh okay great!! Thank you for your help :)
from core.
Forgot to update, this is already fixed in 0.14.2
from core.
Related Issues (20)
- Support flex gap css property? HOT 1
- Scroll position resetting after clicking input HOT 3
- console.log only shows the first parameter HOT 1
- [UGUI] Text scaling with `rem` is not the same as in web browsers HOT 4
- [UGUI] Line-Height with `rem` is not the same as in web browsers HOT 3
- [UGUI] `<br>` tag is not respected when considering line height HOT 4
- ReactUnity polyfils are not loaded from Resources HOT 4
- `<view>` GameObject is not removed after Restart HOT 6
- [UGUI] Performance Improvement to not create GameObjects that are empty HOT 1
- [UGUI] Performance improvement for non rounded elements HOT 2
- [UGUI] Pointer events are not consistent if parent have none and children have auto HOT 3
- onMouseDown, onPointerDown and probably more events do not work as intended HOT 5
- Auto-Reload after changes in code are not reflected or automaticaly updated. HOT 1
- Created canvases should inherit properties from the main canvas HOT 1
- What's the best practice to use Router? HOT 2
- Chinese didn't render in ReactUnity canvas HOT 2
- Inconsistent element rendering HOT 4
- [CSS] "width: 100%" seems to not work inside of Unity HOT 1
- compare with react-unity-webgl 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 core.