大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0170 秒)
Laya_社区(6391) Laya2.0_文档(168) Laya3.0_文档(83) Laya3.0_api(76) Laya2.0_api(72) laya_api(68) Laya_示例(62) Laya2.0_示例(36)
...左上角,x的长就是你stage的宽,y的长就是你stage的高box,sprite等的坐标系00点为自身的轴心点, 你可以看一下这篇对sprite描述的文档, https://layaair.ldc.layabox.co ... prite 2018-04-12 1 1 分享 微博 QZONE 微信 Apple 赞同来自: lhb1990711 萌新...
来源: Laya_社区 发布时间: 20180411
...旋转角度与父物体不一致 我在创建的物体上多套了一个Sprite,然 后父物体旋转30,碰撞体没有旋转 附件 : --> 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20181122
...thographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.tran...
来源: Laya_社区 发布时间: 20180503
锯齿问题 求破 var avatarContainer = new Sprite(); var imgTextTure = Laya.loader.getRes('http://q3.qlogo.cn/g?b=qq&s=100&nk=842256713'); var imgSprite = new Sprite(); imgSprite.x = 300 imgSprite.graphics.drawTexture(img...
来源: Laya_社区 发布时间: 20170209
...ne3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTe...
来源: Laya2.0_文档 发布时间: 20210714
...Text = Laya.Text; import Image = Laya.Image; import Sprite = Laya.Sprite; export class SmartScale_T { //适配模式 private modes:string = "exactfit"; //全局文本信息 private txt: Text...
来源: Laya2.0_文档 发布时间: 20200307
...Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉,运行时不能正常显示图片。请问下对stage是否有大...
来源: Laya_社区 发布时间: 20170803
...* @param struct 辅助对象, 记录部件与对应资源路径 * @param sprite 返回厘米秀模型根节点 * @param renderableMap 各部件与对应渲染节点map */ onLoadCharacter(struct: CmShowCharacterStruct, sprite: Sprite3D, renderableMap: Map>) { // 将节点添加到场景中 this.sce...
来源: Laya2.0_文档 发布时间: 20210715
...线,示例代码如下: ```typescript module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() ...
来源: Laya2.0_文档 发布时间: 20210715
...ctionList(); this.createDurationCrontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.H...
来源: Laya2.0_示例 发布时间: 20260930