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

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

381. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 79%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...

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

382. 分享:TiledMap设置viewport后黑屏问题! [ 79%]

...aya.maths.Rectangle; import laya.utils.Handler; public class LayaAirDemo { private var tiledMap:TiledMap; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor...

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

383. 分享一个Shader版的CoolDown实现 [ 79%]

...extends Sprite {         /** 顶点缓冲区。      */         private vBuffer: Laya.VertexBuffer2D;         /** 片元缓冲区。      */         private iBuffer: Laya.IndexBuffer2D;         private vbData: Float32Array;         private ibData: Uint16Array;       ...

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

384. graphics持续绘制扇形问题 [ 79%]

graphics持续绘制扇形问题 private function onLoaded():void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private functio...

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

385. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 79%]

...aya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初始化引擎 Laya.init(1024, 768); //Stat.show(); Laya.stage.bgColor = "#ccc"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.sta...

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

386. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...图3) 下面演示获取旋转方位信息: class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info...

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

387. 缓动-简单的Tween [ 79%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter(...

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

388. typeScript Java互调问题 [ 79%]

...————— public class MainActivity extends Activity{          private IPlugin mPlugin = null;     private IPluginRuntimeProxy mProxy = null;     boolean isLoad=false;     boolean isExit=false;     private WebView webView = null;     private Activity activity = null;     @Over...

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

389. 请问layabox对TV端支持的如何? [ 79%]

...2017-05-12 17:11 目前支持滤镜和混合模式有限: 1、滤镜 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; 2、混合模式 ["nor...

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

390. 龙骨动画残影 [ 79%]

...源是直接用龙骨的官方DEMO转的。部分代码片段如下:  private _onAnimationCreated(ani)     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this...

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