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

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

691. putimagedata 不起作用 [ 65%]

...作用 (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage....

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

692. Sprite3D-Sprite3D加载 [ 65%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...

来源: Laya_示例 发布时间: 20260303

693. laya.ui.Image [ 65%]

...源加载完成后,会自动缓存至资源库中。 Image  source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean设置cacheAs为非空时此值才有效,staticCache=true时,子对象变化时不会自动更新缓...

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

694. laya.display.Sprite [ 65%]

...动更新缓存,只能通过调用reCache方法手动刷新。Sprite  texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则...

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

695. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦...

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

696. laya.display.AnimationBase_API3.0 [ 64%]

...votY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains custo...

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

697. laya.device.media.Video_API3.0 [ 64%]

...leX scaleY scene scrollRect seekable seeking skewX skewY stage staticCache texture timer transform url videoHeight videoWidth viewport visible volume width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater canPlayT...

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

698. 限制区域拖动效果,为什么会无法限制呢? [ 64%]

... = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golf...

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

699. laya.display.FrameAnimation_API3.0 [ 64%]

...votY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains custo...

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

700. laya.spine.SpineSkeleton_API3.0 [ 64%]

...leY scene scrollRect skewX skewY skinName source stage staticCache templet texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addAnimation addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customR...

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