大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...a.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter....
来源: Laya_示例 发布时间: 20251209
...aya.Handler; this.bitmapFont = new BitmapFont(); this.bitmapFont.loadFont("res/bitmapFont/test.fnt", new Handler(this, this.onFontLoaded, [this.bitmapFont])); } onFontLoaded() { // 设置空格的宽 this.bitmapFont.setSpaceWidth(10); // 注册位图字体 Laya.Text.registerBitmapFont(fontName, this...
来源: Laya2.0_示例 发布时间: 20251209
...refab,SizeGrid,Vec,Vector,Ease | | accept | String的关联属性,accept:res 为接收资源地址 | | acceptTypes | Node和accept的关联属性, 接收的类型,比如和节点使用RevoluteJoint,PrismaticJoint,RigidBody;与accept:res使用jpg,png,txt限制后缀 | | option | Option和editOp...
来源: Laya2.0_文档 发布时间: 20200603
...refab,SizeGrid,Vec,Vector,Ease | | accept | String的关联属性,accept:res 为接收资源地址 | | acceptTypes | Node和accept的关联属性, 接收的类型,比如和节点使用RevoluteJoint,PrismaticJoint,RigidBody;与accept:res使用jpg,png,txt限制后缀 | | option | Option和editOp...
来源: Laya2.0_文档 发布时间: 20210714
..., height: height, destWidth: width, destHeight: height, success: function (res) { wx.shareAppMessage({ imageUrl: res.tempFilePath, title: string }) } }); 注意:sp 可以是Laya.image 或者laya.sprite 2018-05-18 2 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180517
...种开发语言、LayaAirIDE让项目开发更高效。let texturePath = "res/tinyMaggot.png", padding = 100, maggotAmount = 5000, tick = 0, maggots = [], wrapBounds, maggotTexture; class PerformanceTest_Maggots { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, ...
来源: Laya2.0_示例 发布时间: 20251209
...re 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTexture,但周边有...
来源: Laya_社区 发布时间: 20180904
...加载,资源加载全部出错。 后来我就加了URL.baseURL = "res/" ,这样场景加载正常了,但是场景中的资源加载又失败。 建议引擎把这儿的资源导出默认到res目录,那些都导到bin下面,资源太乱了。 附件 : --> uiext.zip 2019-07-25 添...
来源: Laya_社区 发布时间: 20190725
...layaair samples 2、切换到Text_HTML示例 3、进入该示例使用的res目录:samples\res\html\test.html 4、修改此html,添加 ul 、li、table、tr、td等等标签。发现均提示 undefined class。 如图: 5、test.html 如图: 6、最终呈现效果如图: 附件 : -...
来源: Laya_社区 发布时间: 20181012
... var skinMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm"))); skinMesh.transform.localRotationEuler = new Laya.Vector3(0, 3.14, 0); var skinAni = skinMesh.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemplet.load("../....
来源: Laya_社区 发布时间: 20170715