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

大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0057 秒)

2421. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 47%]

...值会变化,iphone6第一次加载正确,刷新几次就变大了。 class GameMain{     public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight;     constructor()     {         console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', p...

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

2422. 分享:使用 Chart.js 创建图标 [ 47%]

...库通过script标签的方式引入index.html启动文件package { public class FormDemo { public function FormDemo() { // 初始化舞台 Laya.init(400,400); // 图标数据 var data:Object = { labels: [ //最上方矩形的标签提示和颜色设置 "Red", "Blue", "Yellow" ], datasets: [ { data:...

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

2423. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 47%]

...aFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function ...

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

2424. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 47%]

... Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.MiniAdpter.init(); Laya.init(740, 400); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENT...

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

2425. laya.d3.core.light.LightSprite [ 47%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight,...

来源: laya_api 发布时间: 20170929

2426. laya.d3.core.material.BlinnPhongMaterial [ 47%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BlinnPhongMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class BlinnPhongMaterialInheritanceBlinnPhongMaterial BaseMaterial laya.resource.Resource BlinnPhongMaterial 类用于实现Blin...

来源: Laya2.0_api 发布时间: 20190513

2427. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 47%]

...么意思,二者有什么关系呢?   demo代码如下// 程序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.Ti...

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

2428. 导航容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...暴露的属性入口中。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后...

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

2429. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 47%]

...} 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.f...

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

2430. 【官网代码】加载dom音频报错,怎么回事? [ 46%]

....net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioConte...

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