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

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

41. 请问ts怎么import寻路库 [ 93%]

请问ts怎么import寻路库 发现代码目录有Pathfinding, 也知道as3 直接import PathFinding.finders.AStarFinder; 但是用ts 怎么引入呢? 2018-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

42. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 93%]

# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...

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

43. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 93%]

# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...

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

44. 材质-PBRStandard材质 [ 93%]

...rial = mat; }); } } new PBRStandardMaterialDemo();package materialModule { import common.CameraMoveScript; import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.material.PBRStandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.m...

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

45. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 93%]

...钮)的功能,全部代码如下所示: ```typescript package game { import laya.events.Event; import laya.ui.Image; import laya.utils.Tween; /** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; publ...

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

46. 文本-滚动文本 [ 93%]

....scrollY += prevY - nowY; prevX = nowX; prevY = nowY; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: ...

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

47. 文本-Overflow [ 93%]

...lor = "#ffffff"; Laya.stage.addChild(txt); return txt; } })()module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Overflow { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); ...

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

48. 文本-Overflow [ 92%]

...aya.stage.addChild(txt); return txt; } } new Text_Overflow();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Overflow { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); ...

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

49. import 什么用,需要注意哪些 [ 92%]

import 什么用,需要注意哪些 什么import什么用啊,每次都重要打Laya !!!! 附件 : --> 2017-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 asdf131 赞同来自: import test = ui.t...

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

50. 文本-滚动文本 [ 92%]

...vY - nowY; prevX = nowX; prevY = nowY; } } new Text_Scroll();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: ...

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