大约有 1,101 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0078 秒)
Laya_社区(731) Laya3.0_api(83) Laya2.0_api(71) laya_api(66) Laya_示例(41) Laya2.0_示例(39) Laya2.0_文档(36) Laya3.0_文档(34)
[LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 drawToTexture() 方法不能按预期工作,只能绘制背景,无法绘制出子节点内容,API文档对参数也没有详细注释,各种尝试都无解。DEMO 代码已上传,麻烦帮忙看看,感谢。 附件 : --> bug-d...
来源: Laya_社区 发布时间: 20240425
...s/background.png'); //创建一个bg显示对象 var bg = new laya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg); 我们再次刷新页面看看有什么效果 嗯 看来图片出来了...
来源: Laya_社区 发布时间: 20160722
...节 目前想让碰撞体居中,需要用fitresize得到的值(估计是sprite的宽或高的最大值),减去碰撞体半径,再填入对应的偏移中才能让碰撞体居中. 再次调节半径值,需要再次修改偏移值,才能使碰撞居中. 请注意,默认行为不应该如此! 应...
来源: Laya_社区 发布时间: 20231010
...Children?: boolean): List Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns List Properties Optional _extra _extra: INodeExtra Inherited from ...
来源: Laya3.0_api 发布时间: 20231115
...ass EffectAnimationInheritanceEffectAnimation FrameAnimation AnimationBase Sprite Node EventDispatcher Object 动效模板。用于为指定目标对象添加动画效果。每个动效有唯一的目标对象,而同一个对象可以添加多个动效。 当一个动效开始播放时,其他动...
来源: Laya2.0_api 发布时间: 20190513
...ore/scene/Scene3D" Scene3D Class Scene3D 用于实现3D场景。 Hierarchy Sprite Scene3D Implements ISubmit Index Constructors constructor Properties _ShadowMapupdateFrequency _extra _ownGraphics _reflectionsIblSamples _reflectionsResolution _reflectionsSource _scene _sceneUniformData _skinBaseUrl ...
来源: Laya3.0_api 发布时间: 20231115
...Events Packagelaya.ani.swfClasspublic class MovieClipInheritanceMovieClip Sprite Node EventDispatcher Object MovieClip 用于播放经过工具处理后的 swf 动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取...
来源: Laya2.0_api 发布时间: 20190513
...ts Packagelaya.uiClasspublic class MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarc...
来源: Laya2.0_api 发布时间: 20190513
...nt.color; var lineWidth = options.lineWidth || 2; //中划线 var sp = new Sprite(); element.addChild(sp); //画线 sp.graphics.drawLine(0, element.height / 2, element.width, element.height / 2, lineColor, lineWidth); } 2018-05-31 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: ...
来源: Laya_社区 发布时间: 20171019
... Events Packagelaya.uiClasspublic class TreeInheritanceTree Box Component Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyD...
来源: laya_api 发布时间: 20170929