大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(615) Laya_示例(157) Laya2.0_文档(149) Laya2.0_示例(116) laya_api(7) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_api(2)
...实现两个能量条的功能,我们创建一个Hp.js 代码如下 (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.in...
来源: Laya_社区 发布时间: 20160803
...来自: WebGLContext2D 类里面 如下方法 修改后即可 public function addPath(points:Array, close:Boolean, convex:Boolean, dx:Number, dy:Number):void { var ci:int = 0; for (var i:int = 0, sz:int = points.length / 2; i < sz; i++) { var x1:Number = points[ci]+dx, y1:Number = points[ci ...
来源: Laya_社区 发布时间: 20181127
...ite_NodeControl { private var ape1:Sprite; private var ape2:Sprite; public function Sprite_NodeControl() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage...
来源: Laya2.0_示例 发布时间: 20260819
...ieClip = new MovieClip(); Laya.stage.addChild(mc); mc.on("complete", this, function (evt:Event){ trace("swf complete"); }); mc.load("../../res/swf/mapFlash.swf"); 为何加了这段代码,整个H5就如“死机”,点浏览器的刷新都不管用? 也不抱错? 2017-01-18 添加评论 免...
来源: Laya_社区 发布时间: 20170118
...``typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[thi...
来源: Laya2.0_文档 发布时间: 20210715
...@cuixueying 感谢你上面做的回答 现在遇到以下的问题 public function drawImage(target:Sprite,srcbmd:Image, mx:Matrix, p1:Point, p2:Point, p3:Point, p4:Point):void { var texture:Texture = Laya.loader.getRes(srcbmd.skin); target.gr...
来源: Laya_社区 发布时间: 20160627
...rdScriptError expected Number(uniform4f);at requestAnimationFrame callback function Error: expected Number(uniform4f) expected Number(uniform4f);at requestAnimationFrame callback function Error: expected Number(uniform4f)<div class="eruda-json eruda-hidden"></div> at e.value (wagame://WA...
来源: Laya_社区 发布时间: 20190423
...a.d3.js:18192 Uncaught TypeError: Cannot read property '0' of undefined at Function.Utils3D._mulMatrixArray (laya.d3.js:18192) at SkinnedMeshRender.__proto._renderUpdate (laya.d3.js:37732) at Function.FrustumCulling.renderObjectCulling (laya.d3.js:6487) at Scene.__proto._preRenderScene (laya.d3.js:2...
来源: Laya_社区 发布时间: 20180724
...模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp:Laya.Sprite3D){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0)) as Laya.MeshSprite3D; //获取刚体 var cubeRigid:Laya.Rigidbody3D = cube.getComponent(Laya.Rigidbody3D); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...owser; import laya.webgl.WebGL; public class Text_InputSingleline { public function Text_InputSingleline() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.sta...
来源: Laya2.0_示例 发布时间: 20260819