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

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

461. Laya.URL.basePath加载不到网络资源 [ 81%]

...js:13291 (anonymous) @ code.js:13283 __proto.runWith @ code.js:720 __proto.event @ code.js:494 __proto.onError @ code.js:12784 __proto.runWith @ code.js:720 __proto.event @ code.js:494 __proto.error @ code.js:12548 __proto._onError @ code.js:12523 http.onerror @ code.js:12485 _triggerEvent @ weapp-a...

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

462. laya.d3.core.Transform3D_API3.0 [ 81%]

...sform3D Class Transform3D Transform3D 类用于实现3D变换。 Hierarchy EventDispatcher Transform3D NativeTransform3D Index Properties tmpVec3 Accessors localMatrix localPosition localPositionX localPositionY localPositionZ localRotation localRotationEuler localRotationEulerX localRotationEulerY ...

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

463. 解析sk资源报错 [ 81%]

...ani.bone.Skeleton;     import laya.ani.bone.Templet;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();        ...

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

464. DOM元素-视频 [ 81%]

...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video();class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF...

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

465. 3D场景-地形场景 [ 81%]

..."../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCu...

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

466. 2D物理-桥 [ 81%]

...FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addCompon...

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

467. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 81%]

...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...

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

468. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 81%]

...代码如下: ```java package { import laya.display.Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new Htt...

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

469. 分享:SWF LABEL标签的使用! [ 80%]

...L标签的使用!  package { import laya.ani.swf.MovieClip; import laya.events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoa...

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

470. 缓动-缓动函数演示 [ 80%]

... duration, Ease[list.selectedItem]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 10); durationInput.on(Event.INPUT, this, function() { duration = parseInt(durationInput.text); }); } createInputWidthLabel(label, pr...

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