大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
图片添加点击事件 有的不生效 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
...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
...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
...t laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { //初始化引擎 Laya.init(600, 300); ...
来源: Laya_社区 发布时间: 20170918
...拉伸!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
...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
...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
...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
...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
... */ 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