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

大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0170 秒)

971. Text类中竟然没有pos函数的api~ [ 83%]

...左上角,x的长就是你stage的宽,y的长就是你stage的高box,sprite等的坐标系00点为自身的轴心点, 你可以看一下这篇对sprite描述的文档, https://layaair.ldc.layabox.co ... prite 2018-04-12 1 1 分享 微博 QZONE 微信 Apple 赞同来自: lhb1990711 萌新...

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

972. Laya2.0碰撞体旋转角度与父物体不一致 [ 83%]

...旋转角度与父物体不一致 我在创建的物体上多套了一个Sprite,然 后父物体旋转30,碰撞体没有旋转 附件 : --> 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

973. Laya截图3D场景相关模型,导致模型透视! [ 83%]

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

974. 锯齿问题 求破 [ 83%]

锯齿问题 求破  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

975. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 83%]

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

976. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 83%]

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

977. 关于stage的size问题 [ 83%]

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

978. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 83%]

...* @param struct 辅助对象, 记录部件与对应资源路径 * @param sprite 返回厘米秀模型根节点 * @param renderableMap 各部件与对应渲染节点map */ onLoadCharacter(struct: CmShowCharacterStruct, sprite: Sprite3D, renderableMap: Map>) { // 将节点添加到场景中 this.sce...

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

979. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 83%]

...线,示例代码如下: ```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

980. 缓动-缓动函数演示 [ 83%]

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