• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)

741. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 60%]

...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

742. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...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

743. Laya.timer.frameLoop [ 59%]

...lSignal,this);         }    // 更新鱼 子弹的位置         private update(){             // 不在游戏界面             if(fish.data.PlayerData.m_interface != 3){                 return;             }                       // 花费的时间 ...

来源: Laya_社区 发布时间: 20180502

744. 3D中摄像机绕物体旋转该如何实现? [ 59%]

...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...

来源: Laya_社区 发布时间: 20170714

745. http请求能否取消 [ 59%]

...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

746. 官方案例里摄像机绕物体旋转脚本的问题 [ 59%]

...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...

来源: Laya_社区 发布时间: 20190224

747. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 59%]

...,越往右下角起点就越偏移了 // 程序入口 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

748. 问题10600的复现方式 [ 59%]

...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

749. timeline destroy的bug [ 59%]

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

750. 怎么只用RegExp进行正则校验 [ 59%]

怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

来源: Laya_社区 发布时间: 20170313