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

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

561. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 67%]

...符合自己项目中需要的Clip。 **示例代码:** ```typescript (function() { var Stage = Laya.Stage; var Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "res/ui/button-7.png"; var clipSkin = "res/ui/num...

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

562. 图片显示好奇怪 [ 67%]

...1 个回复 cuixueying 赞同来自: 参考下以下实现方式: public function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graph...

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

563. 粒子系统-燃烧大地 [ 67%]

...t; /** * ... * @author ... */ public class Particle_BurningGround { public function Particle_BurningGround() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var ca...

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

564. 粒子系统-永恒之光 [ 67%]

...at; /** * ... * @author ... */ public class Particle_EternalLight { public function Particle_EternalLight() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var cam...

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

565. 关于Panel的双指响应问题 [ 67%]

...2-01 0 6 分享 微博 QZONE 微信 Devilsparta 赞同来自: <pre> (function() { var Stage = Laya.Stage; var Image = Laya.Image; var WebGL = Laya.WebGL; var Panel = Laya.Panel; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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

566. UI-Tree [ 67%]

...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_示例 发布时间: 20261113

567. Panel滚动条滑块位于最下方 [ 67%]

... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...

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

568. 项目的程序入口一般应该怎么写?怎么联系其它的类? [ 67%]

...vas如何使用layaAir引擎 导微信小程序报错window.focus is not a function 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 app启动动画应该如何去掉 请问layaair2.0-js 怎么用程序在...

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

569. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 67%]

...yer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : h...

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

570. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 67%]

...ptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function [b]Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Sprite3D.__proto.onAsynLoaded (http://127.0.0.1...

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