大约有 612 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
...e _agent:Laya.Sprite; public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this...
来源: Laya_社区 发布时间: 20210911
...e = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = ...
来源: Laya3.0_文档 发布时间: 20251010
...lic target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//位置平滑移动插值参数值 public camDepthSmooth: number = 20 publ...
来源: Laya3.0_文档 发布时间: 20251010
...关闭loading界面 Laya.Scene.showLoadingPage(param: any = null, delay: number = 500) 显示loading界面,打开参数,如果是scene,则会传递给 onOpened 方法。延迟打开时间,默认500毫秒 Laya.Scene.hideLoadingPage(delay: number = 500) 隐藏loading界面,延迟关闭时间...
来源: Laya3.0_文档 发布时间: 20251010
...内容 * */ public static copy(str: string ,isAlertMsgId?:number ,isAlertMsgInfo?:string): boolean{ let re: boolean; try { let input = document.createElement("input"); input.value = str; document.body.appen...
来源: Laya_社区 发布时间: 20181214
...数据,模拟树状列表数据,拼接列表的数据源 for (let i: number = 0; i < 5; i++) { //拼接目录数据结构(item标签这里可以自己定义标签名,用什么开头就用什么结束,但是title这里,一定要对应列表渲染单元的label文本节点name) treeData...
来源: Laya3.0_文档 发布时间: 20251010
...e: layaair2-cmd [command] [args] Options: -v, --version output the version number -h, --help output usage information Commands: compile compile project. publish publish project. help [cmd] display help for [cmd] ``` #### layaair2-cmd的帮助说明: 帮助中首先给出了命令的使用范例:...
来源: Laya2.0_文档 发布时间: 20210715
...Data.custom_0, colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader...
来源: Laya3.0_文档 发布时间: 20251010
...传至云端 sendData() { //组织数据 let KVDataList = []; let text = Number(this.owner.text); if(!isNaN(text) && text >= 0 && text <= 9999) { this.owner.text = text.toString() } else { this.owner.text = "1000"; } //开发者要根据这个key来获取数据 let KVData = { k...
来源: Laya3.0_文档 发布时间: 20251010
...og("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载预留,尤其是要打开的场景资源多,并没有完全放到预加载中,还需要再自动...
来源: Laya3.0_文档 发布时间: 20241014