大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ff...
来源: Laya2.0_文档 发布时间: 20210715
...Class, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : La...
来源: Laya3.0_文档 发布时间: 20251010
...lSignal,this); } // 更新鱼 子弹的位置 private update(){ // 不在游戏界面 if(fish.data.PlayerData.m_interface != 3){ return; } // 花费的时间 ...
来源: Laya_社区 发布时间: 20180502
...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...
来源: Laya_社区 发布时间: 20170714
...ueying 赞同来自: 可以清除当前请求,请参考clear方法/** * @private * 清除当前请求。 */ protected function clear():void { var http:* = this._http; http.onerror = http.onabort = http.onprogress = http.onload = null; } 2016-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠?...
来源: Laya_社区 发布时间: 20161205
...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...
来源: Laya_社区 发布时间: 20190224
...,越往右下角起点就越偏移了 // 程序入口 class GameMain { private ps: Laya.Sprite; a: number; b: number; path: Array<number> = ; constructor() { Laya.init(1600, 1400); Laya.stage.bgColor = "#000000"; this.ps = new Laya.Sprite(); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.do...
来源: Laya_社区 发布时间: 20170721
...0,WebGL); Laya.timer.callLater(this,onLater); Laya.timer.clearAll(this); } private function onLater():void{ trace("xxx"); } } } 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...
来源: Laya_社区 发布时间: 20180112
timeline destroy的bug private numTimeLine: Laya.TimeLine; release() { this.numTimeLine.offAll(); this.numTimeLine.destroy(); } 我调用代码release时报错,发现core.js中先把_tweenDataList置null然后又引用了 附件 : --> 2017-06-10 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20170610
怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170313