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

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

1031. 分享一个Graphics画圆角矩形的封装 [ 50%]

...后就可以使用了,如:mysprite.graphics.drawRoundrect(0, 0, 200, 100, 30, '#f00'); 2021-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

1032. [LayaAirIDE3]Laya3.3tween动画在update函数里修改属性值,下一帧会被重新修正 [ 50%]

...暂停动画,就clear掉。 如果1秒后,reset之后,还想继续往100走,那就里面重启1个Tween。 2025-08-15 0 0 分享 微博 QZONE 微信 china 赞同来自: 只要 Tween 还在运行,它每帧都会用自己记录的起点和目标值来计算并赋值,不会关心对象当...

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

1033. HTML文本 · LayaAir3.0文档 · LAYABOX [ 50%]

...d-color:#ff0000; 背景颜色 * border-color:#ff0000; 边框颜色 * width:100px; 对象宽度 * height:100px; 对象高度 * * 示例用法: * var div:HTMLDivElement=new HTMLDivElement(); * div.innerHTML = "<link type='text/css' href='html/test.css'/><a href='alink'>a</a><div...

来源: Laya3.0_文档 发布时间: 20230303

1034. 动态阴影被切割了?为啥没有显示完成的阴影 [ 50%]

...添加照相机 var camera = (scene.addChild(new Laya.Camera()));//0, 0.3, 100 camera.transform.translate(new Laya.Vector3(3, 4, 3)); camera.transform.rotate(new Laya.Vector3(-30, 45, 0), true, false); camera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scen...

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

1035. LAYA的AS3项目碰见个问题,求解 [ 50%]

...myTexts.as继承之,为通用VIEW。 myTextsUI: <View sceneWidth="100" sceneHeight="20" sceneColor="#000000" editorInfo="compId=1">    <Text y="0" x="0" var="txts" text="text" fontSize="12" editorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI ...

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

1036. laya.events.Keyboard [ 50%]

... 3 的键控代码值 (99) 关联的常数。Keyboard  NUMPAD_4 : int = 100[static] 与数字键盘上的数字 4 的键控代码值 (100) 关联的常数。Keyboard  NUMPAD_5 : int = 101[static] 与数字键盘上的数字 5 的键控代码值 (101) 关联的常数。Keyboard  NUMPAD_6 : int ...

来源: laya_api 发布时间: 20170929

1037. laya.events.Keyboard [ 50%]

... 3 的键控代码值 (99) 关联的常数。Keyboard  NUMPAD_4 : int = 100[static] 与数字键盘上的数字 4 的键控代码值 (100) 关联的常数。Keyboard  NUMPAD_5 : int = 101[static] 与数字键盘上的数字 5 的键控代码值 (101) 关联的常数。Keyboard  NUMPAD_6 : int ...

来源: Laya2.0_api 发布时间: 20190513

1038. PBR标准材质实时阴影渲染问题 [ 50%]

...ame('Main Camera') as Laya.Camera; // var camera = new Laya.Camera(0, 0.1, 100); // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewe...

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

1039. 求问sprite放大后,graphics绘制的图像位置偏移 [ 50%]

....size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10, "#fff333"); //位置偏移 sprite.graphics.drawCircle(texture.width/2 - x/scaleRatio, texture.height/2 ...

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

1040. laya.ui.View [ 50%]

...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...

来源: laya_api 发布时间: 20170929