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

大约有 2,159 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0061 秒)

1681. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 57%]

... 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

1682. 加载-销毁Texture使用的图片资源 [ 57%]

...现 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

1683. laya.d3.core.particleshuriken.module.shape.CircleShape_API3.0 [ 57%]

...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Enumeration Interface Inherited property

来源: Laya3.0_api 发布时间: 20231115

1684. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...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

1685. LayaFlash下如何对音量进行控制? [ 56%]

...通过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

1686. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 56%]

...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

1687. laya.d3.resource.TextureCube_API3.0 [ 56%]

...建 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

1688. laya.d3.resource.models.PrimitiveMesh_API3.0 [ 56%]

...ylinder createPlane createQuad createSphere Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface Static method

来源: Laya3.0_api 发布时间: 20231115

1689. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

.../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

1690. laya.display.cmd.FillTextCmd_API3.0 [ 56%]

...Class with type parameter Property Method Accessor Object literal Variable Function Type alias Static property Static method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115