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

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

391. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 61%]

...import laya.utils.Tween; /** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听...

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

392. laya.display.Sprite [ 61%]

...s No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标...

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

393. 关于as版的Animation.createFrames()不能工作? [ 61%]

...port laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoad...

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

394. laya.display.Sprite [ 61%]

...s No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprite, MapLayer, MovieClip, Particle2D, Scene, Skeleton, Stage, Tex...

来源: laya_api 发布时间: 20170929

395. 读取json对象 [ 61%]

读取json对象 代码public function LayaSample() {             //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffffff";             Stat.show(300,0);             var arr:Array = new Array();             ...

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

396. laya.net.Socket [ 61%]

...es SocketProperties | Methods | Events | Constants Packagelaya.netClasspublic class SocketInheritanceSocket EventDispatcher Object Socket 封装了 HTML5 WebSocket ,允许服务器端与客户端进行全双工(full-duplex)的实时通信,并且允许跨域通信。在建立连接后,...

来源: laya_api 发布时间: 20170929

397. laya.net.Socket [ 61%]

...es SocketProperties | Methods | Events | Constants Packagelaya.netClasspublic class SocketInheritanceSocket EventDispatcher Object Socket 封装了 HTML5 WebSocket ,允许服务器端与客户端进行全双工(full-duplex)的实时通信,并且允许跨域通信。在建立连接后,...

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

398. UI-TextArea [ 61%]

...rt laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_TextArea { private var skin:String = "../../res/ui/textarea.png"; public function UI_TextArea() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

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

399. 动画-旧版骨骼动画 [ 60%]

...mbie); this.loadUI(); }); } //遍历节点,添加SkinAnimation动画组件 public addSkinComponent(spirit3D: Laya.Sprite3D): void { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; var skinAni: Laya.SkinAnimations = meshSprite3D.addCom...

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

400. 灯光-点光 [ 60%]

...aya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public class PointLightDemo { private var _temp_position:Vector3 = new Vector3(); private var _temp_quaternion:Quaternion = new Quaternion(); public function PointLightDemo() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = ...

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