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

大约有 1,692 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

261. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 70%]

... 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

262. laya.d3.core.particleshuriken.module.shape.BaseShape_API3.0 [ 70%]

... 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

263. Laya.Tween怎么运用到3D对象上? [ 70%]

... 分享 微博 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

264. 按钮点击的位置发生偏移 [ 70%]

...偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实际按钮展示的范围发生...

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

265. 分享一个Shader版的CoolDown实现 [ 70%]

... {             var vs: string = " \             attribute vec2 position; \             attribute vec2 texcoord; \             attribute vec4 color; \             uniform vec2 size; \             uniform mat4 mmat; \             varying vec2 v_texcoord; \   ...

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

266. 【分享】Laya As3 Tween类的loop实现和3d简单缓动实现 [ 70%]

...public static const LoopType_Loop:String = "loop"; 2 增加简单3d缓动: Position,Scale,Rotation,Color   demo如下:   具体实现方式和demo源码放到github。有需要的同学可以看看。github入口 附件 : --> 2018-09-05 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

267. 有关Laya3D碰撞检测疑问 [ 69%]

...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

268. 微信小游戏发布后,在开发者工具中报错, [ 69%]

... 报错如下: 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

269. ios上input无法隐藏 [ 69%]

...="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

270. 其他引擎的Demo-Example_23 [ 69%]

...(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