大约有 1,692 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1275) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(25) Laya_示例(24) Laya2.0_示例(3)
... function static instantiate(original: Sprite3D, parent: Node = null, worldPositionStays: Boolean = true, position: Vector3 = null, rotation: Quaternion = null): Sprite3D; ``` - original :原始精灵。 - parent:父节点。 - worldPositionStays: 是否保持自身世界变换。 - position:世界...
来源: Laya2.0_文档 发布时间: 20210715
... Properties enable randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new BaseShape(): BaseShape Defined in laya/d3/core/particleShuriKen/module/shape/BaseShape.ts:31 创建一个 BaseShape 实例。 Returns BaseShape Properties enable enable: boole...
来源: Laya3.0_api 发布时间: 20231115
... 分享 微博 QZONE 微信 zszen 赞同来自: box.potOld = box.transform.position;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler...
来源: Laya_社区 发布时间: 20170905
...偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实际按钮展示的范围发生...
来源: Laya_社区 发布时间: 20200825
... { var vs: string = " \ attribute vec2 position; \ attribute vec2 texcoord; \ attribute vec4 color; \ uniform vec2 size; \ uniform mat4 mmat; \ varying vec2 v_texcoord; \ ...
来源: Laya_社区 发布时间: 20170606
...public static const LoopType_Loop:String = "loop"; 2 增加简单3d缓动: Position,Scale,Rotation,Color demo如下: 具体实现方式和demo源码放到github。有需要的同学可以看看。github入口 附件 : --> 2018-09-05 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180905
...men/texture/layabox.png"); box.meshRender.material = boxMat; box.transform.position = new Laya.Vector3(0.3, 0.5, 0.5); box.transform.rotate(new Laya.Vector3(0, 30, 0), false, false); let boxCollider1:Laya.BoxCollider = box.addComponent(Laya.BoxCollider) as Laya.BoxCollider; boxCollider1.setFromBound...
来源: Laya_社区 发布时间: 20180820
... 报错如下: VM819:1 gameThirdScriptError Unexpected token in JSON at position 787;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 787 at JSON.parse (<anonymous>) at Function.e.getJson (http://127.0.0.1:37389/game/code.js:1:461434) at Function.e....
来源: Laya_社区 发布时间: 20180725
...="image/*";//设置文件的格式为png; z_file.style.position ="absolute"; z_file.style.left = '18%'; z_file.style.top = '64%'; z_file.style.zOrder = 888; f_file.style="filter:alpha(...
来源: Laya_社区 发布时间: 20171128
...(tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); laser.loadImage("../../res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; var pos1; var pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = n...
来源: Laya_示例 发布时间: 20241001