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

大约有 577 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)

191. 微信小游戏图片加载不出来 [ 72%]

...图片可以 ,下面附上背景demo //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("ui/BG/play-bg.png", 0, 0, 720, 5120); //把背景图显示在容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图...

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

192. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 72%]

...ONE 微信 helloworldlv 赞同来自: package test  { import laya.display.Sprite; import laya.display.Text; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Han...

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

193. laya.ui.View [ 72%]

...thods | Events Packagelaya.uiClasspublic class ViewInheritanceView Scene Sprite Node EventDispatcher ObjectSubclasses Dialog, MoreGame View 是一个视图类,2.0开始,更改继承至Scene类,相对于Scene,增加相对布局功能。 Public Properties Hide Inherited Public Properties Sho...

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

194. laya.ui.Image [ 72%]

... Events Packagelaya.uiClasspublic class ImageInheritanceImage UIComponent Sprite Node EventDispatcher ObjectSubclasses AdvImage Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其...

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

195. 2D物理-桥 [ 72%]

...teBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider...

来源: Laya2.0_示例 发布时间: 20240930

196. laya.display.AnimationBase [ 72%]

...Packagelaya.displayClasspublic class AnimationBaseInheritanceAnimationBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画基类,提供了基础的动画播放控制方法和帧标签事件相关功能。 可以继承此类,但不要直接实例化此类,因为有...

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

197. laya.ui.ComboBox [ 72%]

...nts Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox Component Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined B...

来源: laya_api 发布时间: 20170929

198. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 72%]

...泄漏。 用的引擎版本是1.7.16beta。package { import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Main { private ...

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

199. laya.ui.FontClip [ 72%]

...ckagelaya.uiClasspublic class FontClipInheritanceFontClip Clip UIComponent Sprite Node EventDispatcher Object 字体切片,简化版的位图字体,只需设置一个切片图片和文字内容即可使用,效果同位图字体 使用方式:设置位图字体皮肤skin,设置皮肤对应...

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

200. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 72%]

...(!this.cubeP){             this.cubeP = this.scene.addChild(new Laya.Sprite3D());             this.cube = this.cubeP.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));             let rigidbody = this.cube.addComponent(Laya.Rigidbody3D);             rigid...

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