大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...值会变化,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
...库通过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
...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
... 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
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
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
...么意思,二者有什么关系呢? 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
...暴露的属性入口中。需要添加如下的示例代码: 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
...} 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
....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