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

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

751. 加载-错误处理和进度 [ 65%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; La...

来源: Laya_示例 发布时间: 20260303

752. TypeError: Cannot read property 'length' of null [ 65%]

...ned错误 Cannot read property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeErr...

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

753. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 65%]

...MLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya....

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

754. LayaAir3D中的Transform变换(ActionScript-3D基础(AS3)-LayaAir3D图形系统基础概念) [ 65%]

...m3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的世界中非常的重要,所有有关显示对象变化的都会用到他。 ​ 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且...

来源: Laya2.0_文档 发布时间: 20210714

755. 关于新手引导 [ 65%]

...urce.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //...

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

756. 2.0里Texture方法有改变吗? [ 65%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 如何检测Animation动画播放完毕后去执行方法? 问题状态 最新活动: 2018-10-29 15:04 浏览:...

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

757. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...下面给出一个示例代码,实现脚本控制SoundNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被...

来源: Laya3.0_文档 发布时间: 20251010

758. 物理引擎-布 [ 65%]

... Laya.Stat; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_Cloth { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; privat...

来源: Laya_示例 发布时间: 20260303

759. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 65%]

...口类GameMain.ts,编写如下代码:** ```typescript // 程序入口 class GameMain{ //资源路径 private skin1:string = "checkbox.png"; private skin2:string = "checkbox.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞...

来源: Laya2.0_文档 发布时间: 20210715

760. 不能成功调用 DiaLog Close 关闭方法 [ 65%]

...ck); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var _proto = Start.prototype; // 初始化 UI 界面显示 _proto.reset = function(){ } _proto.onBeginClick = function(){ dialog.close(); restart(); } _proto.onLinkClick = function(){ alert("***")...

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