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

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

1541. laya.d3.physics.shape.StaticPlaneColliderShape [ 74%]

...ColliderShapeConstructor DetailStaticPlaneColliderShape()Constructorpublic function StaticPlaneColliderShape(normal:Vector3, offset:Number) 创建一个新的 StaticPlaneColliderShape 实例。 Parameters normal:Vector3 offset:NumberMethod Detailclone()methodoverride public function clone():* 克...

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

1542. domParser在哪儿 [ 74%]

...          */         public static var parseXMLFromString:Function = function(value:String):XmlDom {             var rst:*;             value = value.replace(/>\s+</g, '><');             __JS__("rst=(new DOMParser()).parseFromString(val...

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

1543. UI-ColorPicker [ 74%]

...rPicker { private var skin:String = "../../res/ui/colorPicker.png"; public function UI_ColorPicker() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...

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

1544. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 74%]

...private var arr:Array;//用于存储处于over状态的显示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite()...

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

1545. [临时解决]bug?加载sk问题 [ 74%]

...,代码大概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.prel...

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

1546. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 74%]

...age=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景";...

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

1547. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 74%]

...al.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { //获取相机的天空盒渲染体 var skyRenderer:SkyRenderer = camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material ...

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

1548. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 74%]

...戏项目。 Scene: the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0....

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

1549. 加载-单一类型资源加载 [ 74%]

...exture; import laya.utils.Handler; public class Loader_SingleType { public function Loader_SingleType() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["../.....

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

1550. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 74%]

...身上纹,掌声送给社会人", imageUrl: "images/boss.png", success: function () { gameex.bar.shareCount += 1; gameex.bar.clearCountDown(); gameex.snakeSelf.updateState(EN_SNAKE_STATE_NORMAL); gameex.snakeSelf.setLength(3) gameex.buffManager.buildBuff(EN_SNAKE_BUFF_ID_1, gameex.snakeSelf, [4000...

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