Comments (3)
because the default size mode in Sprite component is TRIMMED, it will reset the node's size when adding to the scene.
from cocos-engine.
yeah , if i use sprite.sizeMode = cc.Sprite.SizeMode.CUSTOM when set frame texture then code 1 run ok ^^ , thank for reply ...! <3 @jareguo
from cocos-engine.
np :D
from cocos-engine.
Related Issues (20)
- Random Error when building project in headless mode HOT 1
- Spine encountered an error while destroying HOT 8
- 2.4.14编辑器需要添加支持Ark与v8的切换功能 HOT 2
- The extension system should automatically install the extension's dependencies HOT 2
- Using "Preview in Editor" causes Hierarchy to be reset the next time the project is open
- Broken order of duplicated nodes HOT 1
- Support WebGPU in Typescript HOT 1
- native下对于readDir的包装结果和小游戏上的不一致
- openharmony update api11
- [3.8.2] Typescript runtime error. Losing `this` binding in parent base methods. HOT 1
- 3.8.2 spine skin getAttachmentsForSlot findNamesForSlot 接口实现错误 HOT 1
- EditBoxImpl 监听的全局事件没有移除,销毁后在 web 调整窗口大小会报错 HOT 2
- 游戏运行起来之后,华为出现权限界面一定会这样闪屏 HOT 1
- Event System _cachedArray is shared, nested dispatch causes bug
- cc.d.ts中 getComponent()方法参数类型不对. HOT 2
- Editor bug : 粘贴组件时, 总是在添加到最下面 HOT 6
- [3.8.2] PolygonCollider2D is very sluggish when adjusting the bounding box in edit mode
- MT6765 启动显示异常
- After changing enum, the reference value in the component will not be modified at the same time. HOT 4
- Spine Rendering Bug 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 cocos-engine.