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

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

131. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 81%]

...己需要的文件夹。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时...

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

132. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 80%]

...个三角形,示例代码如下: ```javascript module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;        export class Sprite_DrawShapes {         private sp: Sprite;            constructor()         {        ...

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

133. 分享一个自己做的游戏公告功能,跑马灯效果 [ 80%]

分享一个自己做的游戏公告功能,跑马灯效果 import View = Laya.View import Image = Laya.Image import HTMLDivElement = Laya.HTMLDivElement import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /...

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

134. 加载TiledMap 不显示 [ 80%]

加载TiledMap 不显示 import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export...

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

135. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 80%]

...ojection customReflection destroyed enabled hideFlags iblTex iblTexRGBD id importance probePosition reflectionDecodingFormat reflectionIntensity reflectionTexture type Methods _VolumeChange _addRenderNode _initialize _motionInVolume _reCaculateBoundBox _removeRenderNode _setOwner applyReflectionShad...

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

136. typescript的版本能不能更新 [ 80%]

...成export, 我是用webpack打包js的, 如果需要某个ui, 我在js中import就可以了, 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: Ts 环境是自己安装的 ,一帖...

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

137. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 80%]

...载完成的回调里去获取你的texture并drawTexture // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets...

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

138. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 80%]

...篇中的文本部分。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

139. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 79%]

...成为一个js。并且namespace和module暴露在全局空间里,不用import就可以namespace.XXX和module.xxx引用。 我还发现2.x版本已经不同了.只编译import的, 原来的代码编译不过了, 研究了好久也没研究出方法.  请大大帮忙答疑一下.   例如: a.ts m...

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

140. 2.0 ts 没有export 的 module 没有编译到 bundle.js里 [ 79%]

...交 1 个回复 Laya_Aaron 赞同来自: 需要export的,使用也需要import, 这是es6语法, 可以去ts官网查一查如何使用, 引擎使用gulp 流程编译,也可以去了解 2019-04-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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