mirror of
https://github.com/szrpf/SceneAdapterDemo
synced 2024-12-26 03:39:02 +00:00
v1.1
This commit is contained in:
parent
0c5d1f847d
commit
c4d0f72e5f
@ -1,5 +1,11 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* 创建: 2023年07月02日
|
||||||
|
* 作者: 水煮肉片饭(27185709@qq.com)
|
||||||
|
* 描述: 场景适配器
|
||||||
|
* 给场景Scene根节点(Canvas组件所在的节点)挂上SceneAdapter
|
||||||
|
* 就可以自动适配屏幕尺寸
|
||||||
|
*******************************************************************************/
|
||||||
const { ccclass, menu } = cc._decorator;
|
const { ccclass, menu } = cc._decorator;
|
||||||
|
|
||||||
@ccclass
|
@ccclass
|
||||||
@menu('Comp/SceneAdapter')
|
@menu('Comp/SceneAdapter')
|
||||||
export default class SceneAdapter extends cc.Component {
|
export default class SceneAdapter extends cc.Component {
|
||||||
|
Loading…
Reference in New Issue
Block a user