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

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

191. Sprite-缓存为静态图像 [ 74%]

...x.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { // 不支持WebGL时自动切换至Canvas Laya.i...

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

192. sk文件加载 [ 74%]

sk文件加载 package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import view.TestView;     import laya.webgl.WebGL;     import laya.net.URL;     import laya.ani.bone.Skeleton;          public class LayaU...

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

193. 如何显示动画ani [ 74%]

...啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationDemoUI;  public class Main{public function Main(){//初始化舞台Laya.init(1334,750);//设置舞台背景色Laya.stage.bgColor = "#ffffff"  //加...

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

194. Sprite-旋转缩放 [ 74%]

...h.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number ...

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

195. 鼠标穿透问题 [ 74%]

...为true,为何还能穿过Sprite滑动List? 代码如下:package { import laya.display.Sprite; import laya.display.Stage; import laya.net.Loader; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected ...

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

196. 文本-多行输入 [ 74%]

...fff"; inputText.fontSize = 20; } } new Text_InputMultiline();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputMultiline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.cl...

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

197. 加载-错误处理和进度 [ 74%]

...载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 ...

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

198. 老版本的native是不是不支持webview [ 74%]

...误 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? laya.d3.utils.Utils3D的convert3DCoordTo2DScreenCoord这个接口api描述是不是错了? laya2.1.0版本conchMarket和IMarket接口去哪了? 问题状态 最新活动: 2017-12-25 23:25 浏览: 713...

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

199. 鼠标交互-滑动 [ 74%]

...is.button, { x: targetX }, 100); } } new Interaction_Swipe();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 priv...

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

200. Sprite-缓存为静态图像 [ 74%]

...态图像 textBox.cacheAs = "bitmap"; } } new Sprite_Cache();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { // 不支持WebGL时自动切换至Canvas Laya.i...

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