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

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

871. Laya 集成Box2d 可以么?着急 [ 65%]

...aya.Browser.createElement('canvas');     //设置大小     canvas.width = Laya.stage.width;     canvas.height = Laya.stage.height;     var ctx = canvas.getContext('2d');     Laya.stage.graphics.clear(false);     var textture = new Laya.Texture(canvas);     textture.bitma...

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

872. 使用laya官方示例代码制作微信小游戏无法显示 [ 65%]

...vate createLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = stro...

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

873. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 65%]

...消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message.height; console.log("-----------------sharedresize----------1------------------"); console.log(message.data.matrix); console.log("-----------------sharedresize------------2-...

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

874. 请问HTMLDivElement怎么加垂直滚动条 [ 65%]

...现滚动条而且还漏了。 var str = "<div style='position:absolute;width:495px;height:329px;overflow-y:scroll;border-width:1px;border-color:Red;border-style:solid;font-size:16px;color:#fff;'><p style='color:#999;right:20px'>2021-01-21 10:25:10</p>bbb>>bbb 加入了聊天...

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

875. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 65%]

...port1:Laya.Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2:Laya.Viewport = camera2.normalizedViewport; viewport2.width = 0.8; viewport2.x = 0.2; camera2.normalizedViewport = viewport2; }); ``` ...

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

876. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 65%]

...模糊处理 Image 设置 scale 之后属性不对 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 2.0模型改变scale到一定值后网格碰撞器失效问题 问题状态 最新活动: 2018-03-15 18:16 浏览: 2431 关注: 2 人 zkang5 • 2018-03-15 18:44 ...

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

877. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...改大小 tree.size(300, 300); //修改树的位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对...

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

878. laya.ui.Label [ 65%]

...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  font : String 文本的字体名称,以字符串形式表示。 ...

来源: laya_api 发布时间: 20170929

879. laya.ui.UIGroup_API3.0 [ 65%]

...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...

来源: Laya3.0_api 发布时间: 20231115

880. 发布到微信画面显示不全 [ 65%]

...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); var canvas = Laya.Render._mainCanvas; var canvasStyle = canvas.source.style; canvasStyle...

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