Comments (4)
or you can upload a simple demo and we will try this
https://www.youtube.com/watch?v=vJX2dJir9M8
from cocos-engine.
When you change MyBytton.string and focus to another place editor will mark as dirty and the title will have change to xx.scene*
but if you want to know your text change event at inspector, you can use getter and setter as you provided and just add @executeInEditMode
decorator
//add this decorator and this component will run on editor and you can use you setter and getter when on editor mode
@executeInEditMode
export class testComponent extends Component {
@property(MyText)
private _text: MyText;
@property(CCString)
get string(): string { retunr this._text.string; }
set string(value: string) { this._text.string = value; }
}
from cocos-engine.
Tried create minimal project to reproduct bug. But No problem not reproduced.
I think the problem is in my project. This is what it looks like:
https://www.youtube.com/watch?v=vJX2dJir9M8
I will research problem more
from cocos-engine.
Success. This happens if you use prefabs
from cocos-engine.
Related Issues (20)
- 编辑器里查看材质的属性时, 在某些分类下, 调整列宽时出现错误
- Can not enable custom texture compression for windows and mac HOT 2
- cocos 文档的搜索功能经常搜不到想找的东西
- 移动正交相机,相机预览画面残留。
- [spine动画API] 缺少 `trackEntry.getAnimationLast/setAnimationLast()` 方法的声明
- Layout组件能否改成同帧刷新
- 统一bundle包中config.json文件名
- 微信小游戏电脑端插屏BUG: 缩放不对. HOT 1
- Label组件的阴影效果在 微信小游戏iPad 版本上无效 HOT 1
- 加载场景有概率报错
- [native] memory leak while changing label ( CacheMode: NONE) text. HOT 1
- angle cannot get correctly,
- Native build don't have the ability to make changes and collaborate with multiple people.
- [bug] Tween property type was changed to plain object
- 功能裁剪能否支持不同平台做不同设置
- The problem of not being able to effectively recognize the textureGrab function during the shader compilation with glslang.js when running WebGPU HOT 2
- [3.8.3] The image resources in tga format in the project cannot be exported as astc during the build process
- [3.8.x] There is a need to support the output of js sourceMap files when building projects for native platforms
- 自定义渲染管线中DevicePass里framebuffer中的texture可能失效
- 3.8.3的dragonBones引入后打印出来是个undefined
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.