18 lines
310 B
TypeScript
Raw Normal View History

2023-02-22 09:50:51 +08:00
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('test_ui')
export class test_ui extends Component {
start() {
console.log(this.node.name, this.node.position, this.node.worldPosition);
}
update(deltaTime: number) {
}
}