大约有 302 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
Laya_社区(106) Laya2.0_示例(91) Laya_示例(80) Laya2.0_文档(18) Laya3.0_api(3) laya_api(2) Laya2.0_api(2)
...mport laya.device.media.Video; import laya.events.Event; import laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("ifram...
来源: Laya_社区 发布时间: 20180223
... var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var logger, keyDownList; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MID...
来源: Laya_示例 发布时间: 20241118
...(function() { var Graphics = Laya.Graphics; var Sprite = Laya.Sprite; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var colors = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var liveGraphics; var canvasGr...
来源: Laya_示例 发布时间: 20241118
... laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;//保存截屏后返回的HtmlCanvas对象 private var texture:Texture ;//texture实例,用...
来源: Laya_社区 发布时间: 20170822
..., console, shakeCount = 0; class InputDevice_Shake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.sta...
来源: Laya2.0_示例 发布时间: 20241118
... Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/m...
来源: Laya_社区 发布时间: 20200909
...Watchdog.run(AsyncTimeout.java:286) # GLThread 911(911) 1 layaair.game.browser.ConchJNI.onDrawFrame(Native Method) 2 layaair.game.browser.e.onDrawFrame(Unknown Source) 3 android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1590) 4 android.opengl.GLSurfaceView$GLThread.run(GLSur...
来源: Laya_社区 发布时间: 20191214
...Thread.run(GLSurfaceView.java:1286) # GLThread 754(754) 1 layaair.game.browser.ConchJNI.onDrawFrame(Native Method) 2 layaair.game.browser.e.onDrawFrame(Unknown Source) 3 android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1590) 4 android.opengl.GLSurfaceView$GLThread.run(GLSur...
来源: Laya_社区 发布时间: 20191217
...iveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.s...
来源: Laya2.0_示例 发布时间: 20241118
...ge; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不...
来源: Laya2.0_文档 发布时间: 20210715