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

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

281. 图片添加点击事件 有的不生效 [ 85%]

图片添加点击事件 有的不生效 private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log(...

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

282. 射线检测报错,outHitInfo.sprite3D=null; [ 85%]

...tHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = t...

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

283. 分享贝塞尔曲线运动 [ 85%]

...er.frameLoop(1, this, this.move, [0.0003])//主控制  0.0003自己调整 private testSp:Laya.Sprite;//移动物体 private counts=0; //移动        自己做条件判断停止frameLoop private move(arg) { var t = arg * this.counts var point = this.bezier(t, stX, stY, kzX, kxY, endX, endY); t...

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

284. Laya.loader.load 教程代码出错 [ 85%]

...t laya.resource.Texture;     public class LayaSample {         private var img:Sprite ;         private var index:int ;         public function LayaSample() {             //初始化引擎             Laya.init(600, 300);              ...

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

285. 如何用Tween 给graphics.drawLine 设置缓动 [ 85%]

...拉伸!package { import laya.display.Sprite; public class LayaAirDemo { private var sp:Sprite; private var endX:Number; private var endY:Number; public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graphics.drawLine(10,10,endX,endY,'#FF00...

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

286. 网络和格式-XML [ 85%]

...ontainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml private proessXML(source:string):void { try { var xml:any = Utils.parseXMLFromString(source); } catch (e) { console.log(e.massage); return; } this.printDirectChildren(xml); } // 打印直接子级 private printDirectChildren(...

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

287. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 84%]

...ya.webgl.WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/combobox.png"; /***下拉列表**/ private var comboBox:ComboBox /***提示信息文本框**/ private var promptText:Text; public function UI_ComboBox() { // 不支持WebGL时自...

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

288. Handler.create的回收问题 [ 84%]

...ort Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.ali...

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

289. 区块地图-PerspectiveWall [ 84%]

...rowser; import WebGL = Laya.WebGL; export class TiledMap_PerspectiveWall { private tiledMap: TiledMap; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; ...

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

290. 微信小游戏渲染开放域卡顿处理 [ 84%]

...      */     export class WXBitmap extends Laya.Sprite {         private $viewName: string;         private $texture: Laya.Texture;         private $bitmap: any;         private $timer: lie.Timer;         public auto: boolean = true;    // 仅在未加入场景前修改有...

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