大约有 1,764 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0055 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...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
...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
...m3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的世界中非常的重要,所有有关显示对象变化的都会用到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且...
来源: Laya2.0_文档 发布时间: 20210714
...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
...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 如何检测Animation动画播放完毕后去执行方法? 问题状态 最新活动: 2018-10-29 15:04 浏览:...
来源: Laya_社区 发布时间: 20181029
...下面给出一个示例代码,实现脚本控制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
... 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_示例 发布时间: 20251218
...口类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
...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
...ithShaderDefine(73 - Laya.ShaderCompile3D.SHADERDEFINE_HIGHPRECISION,4,20);class ShaderPrecompile { constructor() { Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 Laya.ShaderCompile3D.debugMode = true; var sc: Laya.ShaderCompile3D = Laya.ShaderCompile3D...
来源: Laya_示例 发布时间: 20251218