大约有 3,225 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2850) Laya3.0_api(82) Laya2.0_api(76) Laya2.0_文档(75) laya_api(71) Laya3.0_文档(58) Laya2.0_示例(7) Laya_示例(6)
...l/Effect_zhujue_attack.lh"); let tarItem = Laya.Sprite3D.instantiate(item); this.scene.addChild(tarItem); tarItem.transform.position = new Laya.Vector3(0, 0, 0); item.destroy(); ...
来源: Laya_社区 发布时间: 20191102
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 微信小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on t...
来源: Laya_社区 发布时间: 20181013
...放域缩放问题 现在我的游戏里开放域的设置如下 _sp = new Sprite(); var sharedCanvas:* = Browser.window.sharedCanvas; sharedCanvas.width = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Lay...
来源: Laya_社区 发布时间: 20180511
....addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var translate = new Laya.Vector3(0, 0, 0); //(500, 500, 0)改为(0,0,0) var rotation = new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HI...
来源: Laya_社区 发布时间: 20170807
...mageNode:Laya.Image = this.getChildByName("waken") as Laya.Image; var imageSprite:Laya.Sprite; var uint8Array:Uint8Array = imageNode.source.bitmap.getPixels(); //console.log("0000000000000 == " + uint8Array.length); imageNode.source.bitmap.setPixels(uint8Array,0); 附件 : --> 2019-09-23 3 条评...
来源: Laya_社区 发布时间: 20190923
...ure2D和texture的话,就程序动态生成。 1.加载成texture 2.用Sprite画出来 3.sp转url; var htmlCanvas = sp.drawToCanvas(width,height,0,0) var canvas = htmlCanvas.getCanvas(); var base64 = canvas.toDataURL("image/png"); var blob = dataURLtoBlob(base64); var url = Browser.window.URL.cr...
来源: Laya_社区 发布时间: 20181221
...方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。 See alsolaya.display.Sprite.graphicsPublic Proper...
来源: laya_api 发布时间: 20170929
...答(最新版本:1.7.16) 请问laya有没有地图编辑器工具? sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivEle...
来源: Laya_社区 发布时间: 20180806
...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
...名的ActionScript类,如果需要用到这个类的话需要把里边的Sprite包删除掉,因为是Flash原生的包,不删除的话会报错。* **步骤二**: 在名称栏输入HelloLayabox,点击“完成”新建一个ActionScript类。如图6-1所示  (图6-1) **步...
来源: Laya2.0_文档 发布时间: 20210715