一, 场景设计二,整体场景效果三,QuatView.ts代码import {_decorator, Component, EventTouch, Input, input, Node, Quat, v3, Vec3, Vec2} from "cc"; const {ccclass, property} = _decorator; @ccclass("QuatView") export clas
一,场景设计1,场景2, 结构3, 在CoordinateConversionView节点上挂载CoordinateConversionView.ts脚本。二, 代码import {Camera, Component, EventTouch, find, Input, input, Mat4, Node, UITransform, v3, Vec2, Vec3} from 'cc'; /**
一, 代码核心1,CommonTimer.ts/** * 通用计时器 */ import {CommonTimerModeType, ICommonTimerInfo} from "./CommomTimerDefine"; export default class CommonTimerMgr extends cc.Component { public static instanc
一, 场景设计1,ScrollViewPrefab:挂载ScrollViewPrefab脚本。2,ScrollViewPrefabItem: 挂载ScrollViewPrefabItem脚本。是内容item。二,传统做法,加入30个item三,分层处理, 加入30个item1, 代码:CommomScrollViewCD const { ccclass, property } = cc._deco
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号