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

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

311. hitTestPrior点击穿透 [ 86%]

...赞同来自: lllzzz6311 package { import laya.display.Sprite; import laya.events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00...

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

312. websocket连接出错 [ 86%]

...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...

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

313. laya.ani.bone.Skeleton [ 85%]

...ll Classes | Index | Frames No Frames SkeletonProperties | Methods | Events Packagelaya.ani.boneClasspublic class SkeletonInheritanceSkeleton Sprite Node EventDispatcher Object 骨骼动画由Templet,AnimationPlayer,Skeleton三部分组成。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

314. laya.ani.AnimationTemplet_API3.0 [ 85%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getAniDuration getAnimation getAnimationCount getAnimationDataWithCache getNodeCount getNodeIndexWithName getNodeKeyFrame getNodes getNodesCurrentFrameIndex getOriginalData getOriginalDataUnfixedRate getPublicExtData ge...

来源: Laya3.0_api 发布时间: 20231115

315. laya.display.Sprite [ 85%]

...All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有...

来源: Laya2.0_api 发布时间: 20190513

316. 输入设备-摇一摇 [ 85%]

...nction startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake); console.text = '开始接收设备摇动\n'; } function onShake() { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.instance.stop(); console.t...

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

317. laya.display.Sprite [ 85%]

...All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprite, MapLayer, MovieClip, Particle...

来源: laya_api 发布时间: 20170929

318. 如何与服务端建立连接 [ 85%]

...t + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代...

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

319. laya.particle.ParticleTemplate2D_API3.0 [ 85%]

...ddDrawCounter addNewParticlesToVertexBuffer addParticleArray blend destroy event getConchMesh getFirstActiveElement getFirstFreeElement getFirstNewElement getFirstRetiredElement getMesh getRenderType hasListener isCreateFromURL off offAll offAllCaller on once releaseRender renderSubmit setFirstFreeE...

来源: Laya3.0_api 发布时间: 20231115

320. 屏幕适配-屏幕适配 [ 85%]

... = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Image = Laya.Image; import WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes: Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheig...

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