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

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

1091. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 68%]

...示这个img。我们新建个项目。代码如下所示: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Spri...

来源: Laya2.0_文档 发布时间: 20210715

1092. 关于类中方法的调用 [ 68%]

...ount = function(){         //-----         }     }     Laya.class(FactionListItem,"FactionListItem",FactionMainNodeUI);     return FactionListItem; })();       在一个类里。。我可以用this.这样直接调用方法吗?我现在调用了会报错? 2017-11-27 添加评...

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

1093. 能不能让LayaFlash支持原生的条件编译 [ 68%]

...n.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class;   } CONFIG::en{     [Embed(source="ui_en.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class; } 3.这样就表示英文版本我只嵌入英文的ui_en.swf 如果使用现有的宏编译...

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

1094. laya.ui.View [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ViewProperties | Methods | Events Packagelaya.uiClasspublic class ViewInheritanceView Box Component Sprite Node EventDispatcher ObjectSubclasses Dialog View 是一个视图类。 Public Properties Hide Inherited Public ...

来源: laya_api 发布时间: 20170929

1095. laya.d3.component.animation.UVAnimations [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UVAnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class UVAnimationsInheritanceUVAnimations KeyframeAnimations Component3D EventDispatcher Object UVAnimations 类用于创建UV动...

来源: laya_api 发布时间: 20170603

1096. laya.d3.core.Gradient [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GradientProperties | Methods Packagelaya.d3.coreClasspublic class GradientInheritanceGradient ObjectImplements laya.d3.core.IClone Gradient 类用于创建颜色渐变。 Public Properties PropertyDefined By  colorAlp...

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

1097. laya.media.SoundChannel_API3.0 [ 68%]

...xternals Only exported Menu Globals "laya/media/SoundChannel" SoundChannel Class SoundChannel SoundChannel 用来控制程序中的声音。每个声音均分配给一个声道,而且应用程序可以具有混合在一起的多个声道。 SoundChannel 类包含控制声音的播放、暂停、...

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

1098. 3D场景-场景加载 [ 68%]

...ad("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera.sky = skyBox;class SceneLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene...

来源: Laya_示例 发布时间: 20251219

1099. 加载-单一类型资源加载 [ 68%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.load...

来源: Laya_示例 发布时间: 20251219

1100. 问一下这个问题要怎么改啊? [ 68%]

....resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handl...

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