大约有 2,723 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0068 秒)
...t.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } private func...
来源: Laya_社区 发布时间: 20161018
...内存都会增加 我使用的版本是1.7.12 测试代码如下:module Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置...
来源: Laya_社区 发布时间: 20171211
...idth=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(false)...
来源: Laya_社区 发布时间: 20151225
...at;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + "void main(){\n" + "gl_Position = u_MvpMatrix * a_Position;\n" + "mat3 worldMat=mat3(u_WorldMat);\n" + "v_Normal=worldMat*a_Normal;}"; var ps: string = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precisio...
来源: Laya_社区 发布时间: 20180904
...port flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.st...
来源: Laya_社区 发布时间: 20151106
...ttpRequest;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.AudioContext || ...
来源: Laya_社区 发布时间: 20181023
...动chrome出现错误: Error processing launch: Error Could not attach to main target laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 救命!canvas定位后 点击区域偏移,求大大们解答 关于适配采用showAll后留白部分的颜...
来源: Laya_社区 发布时间: 20181025
...t; import Templet = Laya.Templet; import Skeleton = Laya.Skeleton; class Main { constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show(); //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {...
来源: Laya_社区 发布时间: 20220530
... nieyiwei 赞同来自: private var _guideImage:Image; public function main():void { _guideImage = new Image(); _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png"); tweenGuide1(_guideImage ); Tween.clearAll(_guideImage); _guideImage.destroy(true); _guideIma...
来源: Laya_社区 发布时间: 20161216
...有空格的文件访问会出错http://127.0.0.1:53521/usr/test/LayaScene_Main-UI/Assets/Flat_assets/Crown%201-Crown.lm,用浏览器访问这个路径也会报错,我手工在usr/test/LayaScene_Main-UI中建了一个不带空格的文件,用浏览器可以访问,带空格就不行,是微...
来源: Laya_社区 发布时间: 20180502