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)
- vivo 小游戏不能使用TTF字体
- Set the Custom pipeline, the shadow color change from light dark to green HOT 1
- compress texture has any optimization of its speed
- 微信小程序缓存目录优化 HOT 1
- 在安卓设备上反复进出导致崩溃 HOT 1
- AudioSource组件 web player播放器 调用play方法播放 注册的回调没有清除
- 2D Particle crash on native platforms
- Crash if launching game multiple times on Android platform with PhysX module enabled.
- 编辑器EditBox bug
- node.setWorldScale(0, 0, 0) causes NaN issue in scale and worldMatrix properties
- Cannot attach component to node if project created in folder with symbolic link (junction)
- 无论 node.active 是否为 true , invalidateChildren 总是会被执行, 导致性能出现问题. HOT 3
- 刚进入场景时, 拿到的 cc.view.getVisibleSize(); 是不对的, 要延迟一帧才行
- onControllerTriggerEnter can not be triggered HOT 1
- After changing the design resolution, the screen size displays abnormally. HOT 1
- [Spine相关] 随机出现 BindingError: Cannot pass non-string to std::string 错误 HOT 1
- 小米快应用打包失败
- IOS Game Overheating Issue
- PhysicsSystem.raycastClosest() can not work correctly in bullet HOT 1
- skybox LDR
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.