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

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

471. 粒子-粒子演示2 [ 57%]

....webgl.WebGL; public class Particle_T2 { private var sp:Particle2D; public function Particle_T2() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

来源: Laya2.0_示例 发布时间: 20260818

472. 粒子-粒子演示3 [ 57%]

....webgl.WebGL; public class Particle_T3 { private var sp:Particle2D; public function Particle_T3() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

来源: Laya2.0_示例 发布时间: 20260818

473. 鼠标交互-Hold [ 57%]

...间为1秒 private var ape:Sprite; private var isApeHold:Boolean; public function Interaction_Hold() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...

来源: Laya2.0_示例 发布时间: 20260818

474. 2D物理-碰撞事件与传感器 [ 57%]

...r; private var bodys: Array = []; private var touching: Array = []; public function Physics_CollisionEvent() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIG...

来源: Laya2.0_示例 发布时间: 20260818

475. 照相机-3D空间转2D空间 [ 57%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2D = Laya.stage.addChild(new Laya.Image("../../res/threeDimen/monkey.png")); Laya...

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

476. 无法启动程序和调试 [ 57%]

...ist中添加多元素的item 导微信小程序报错window.focus is not a function as3 ,LayaAir下调试matter.js物理引擎出错。 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 app启动动画应该如何去掉 启动引擎报错 mP...

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

477. 求救:proto解析 _i会变成I [ 57%]

...acket_iidiid = 4; } 通过 ProtoBuf.load("protocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_select_gate"); var newMessage:any = msgDefine.create(); } 然后发现里面的成...

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

478. UI-Button [ 57%]

... var xOffset:int; private var yOffset:int; private var skins:Array; public function UI_Button() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.sta...

来源: Laya2.0_示例 发布时间: 20260818

479. IOS 二次开发 callbackToJSWithClass, JS没有收到OC的回调 [ 57%]

... GRIPMgr = Laya.PlatformClass.createClass("AppUtil"); GRIPMgr.callWithBack(function(n):void{alert(n)},"getDeviceIDInKeychain");   [size=14]IOS代码:[/size]  +(void)getDeviceIDInKeychain { [[conchRuntime GetIOSConchRuntime] callbackToJSWithClass:self.class methodName:@"getDeviceIDInKeychain:" re...

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

480. Tween.to时添加滤镜 [ 57%]

...写子类继承为例: public class CustomBitmap extends Sprite { public function CustomBitmap() { } public get luminance():Number { //返回亮度参数值 //... } //亮度,其他一样 public set luminance(value:Number):void { //你自己的处理代码 //... } } var displayObj:CustomBitmap = ne...

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