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

大约有 820 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0060 秒)

141. 自己创建的box作为tab,为啥没有点击事件啊? [ 73%]

...Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() ...

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

142. 没有预加载的图片怎么获取widthheight ? [ 73%]

...d(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older...

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

143. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 73%]

...ngle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自...

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

144. l微信开放域无法显示,但是可以正常传数据 [ 73%]

...//加载一个json图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRan...

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

145. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 73%]

... = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; pri...

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

146. LayaAir LayaAirIDE的区别? [ 73%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.createnew Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 Laya的SceneView什么区别? 在初始...

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

147. Texture.create Texture.createFromTexture有什么区别 [ 73%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.createnew Laya.Handler有啥区别 DialogView用destroyLaya.stage.removeChild有什么区别? 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? disponedestory的区别...

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

148. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 73%]

...aya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("...

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

149. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 73%]

.../Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler....

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

150. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 73%]

...ngle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换...

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