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

大约有 1,764 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0162 秒)

811. laya.d3.math.Vector3_API3.0 [ 64%]

...erited Externals Only exported Menu Globals "laya/d3/math/Vector3" Vector3 Class Vector3 Vector3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cr...

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

812. DragonBone动画使用(TypeScript-LayaAir基础篇(TS)-动画基础) [ 64%]

...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 DragonBonesDemo.ts,代码编写如下: ```typescript ...

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

813. list 加载动画为什么实现的效果会错乱掉? [ 64%]

...; ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list....

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

814. list item 添加事件后无法监听 [ 64%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

815. layaairts下 如何 让动画显示在地图上面tilemap地图 [ 64%]

...02-03 0 1 分享 微博 QZONE 微信 taofljf 赞同来自: // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap...

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

816. 2.0字体比较小的时候,某些字显示不全 [ 63%]

...码demopackage { import laya.webgl.WebGL; import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; tx...

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

817. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 63%]

...rted Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBounds" NativeBounds Class NativeBounds Hierarchy NativeBounds Implements IClone Index Constructors constructor Properties MemoryBlock_size Accessors max min Methods _getBoundBox calculateBoundsintersection clone cloneTo getCenter getExtent getMa...

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

818. 3D场景跳转到2D场景问题 [ 63%]

...from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene...

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

819. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 63%]

...deo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("htt...

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

820. 物理刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 63%]

...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.physics.Rigidbody3D); #### (1) 使用代码创建和添加刚体 在有需要的情况下,我们可以通过代码创建的方式给对象加上刚体。 下面的示例代码中我们简单的创建了个...

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