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

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

141. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 59%]

...Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var...

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

142. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 58%]

...自: ebaww 这个官方示例的写法有误。修改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype....

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

143. 分享个用美术资源做位图文本的方法。。。 [ 58%]

...":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader.getRes("res/playerKpiFont.json"); var imageData = Laya.loader.getRes("res/playerKpiFont.png"); // 左中右创建的3个实例 var bp = new BPFont(jsonData,imageData,600,"left"); var bp1...

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

144. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 58%]

...码:** ```javascript // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = fu...

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

145. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 57%]

...均可以设置一个回调 Laya.LoaderManager.prototype["_loadAssets"] = function (arr, complete, progress, type, priority, cache, group) { (priority === void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize =...

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

146. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 57%]

...flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new Loade...

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

147. UI-Tree [ 56%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Box = Laya.Box; var Clip = Laya.Clip; var Label = Laya.Label; var Utils = Laya.Utils; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24"...

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

148. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 56%]

...f = this; Util3d.loadRes( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main...

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

149. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 55%]

...seEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true...

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

150. UI-RefreshList [ 54%]

...aya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = ...

来源: Laya2.0_示例 发布时间: 20260929