大约有 2,159 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0061 秒)
Laya3.0_api(672) Laya_社区(472) Laya2.0_api(357) laya_api(289) Laya_示例(150) Laya2.0_示例(112) Laya2.0_文档(98) Laya3.0_文档(9)
... laya.display.Text; /** * ... * @author */ public class HelloWorld{ public function HelloWorld(){ //创建舞台 Laya.init(600, 300);//舞台默认背景色是黑色的 var txt:Text = new Text(); txt.text = "Hello, World!"; //设置文本颜色 txt.color = '#FF0000'; //设置文本字体大小,单...
来源: Laya_社区 发布时间: 20180914
...现 Texture 使用的图片资源不存在,则自动恢复。 */ public function Loader_ClearTextureRes() { //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall...
来源: Laya2.0_示例 发布时间: 20260106
...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Enumeration Interface Inherited property
来源: Laya3.0_api 发布时间: 20231115
...t laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya2.0_文档 发布时间: 20210715
...通过SoundChannel.soundTransform.volume去设置 示例如下: public function init(e:Event):void { var sound:Sound=new Sound(); sound.load(new URLRequest("xxx.xxx.xxx")); var sc:SoundChannel=sound.play(); var st:SoundTransform=new SoundTransform(); st.volume=0.5; sc.soundTransform=st; } 2016...
来源: Laya_社区 发布时间: 20160311
...ogo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?谁给解释一下啊 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20181010
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231102
...ylinder createPlane createQuad createSphere Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115
.../check.png"; private var skin2:String ="res/component/check_2.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya...
来源: Laya2.0_文档 发布时间: 20210714
...Class with type parameter Property Method Accessor Object literal Variable Function Type alias Static property Static method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115