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

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

501. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 71%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Clip) ​ Clip 组件的资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ 设置 clipX 属性的值为10后的显示效果: ​ ![图片0.png](img/2.png) ​ (图2) ​ 设置 index 属性...

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

502. 2D物理-碰撞事件与传感器 [ 71%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya....

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

503. 天空穹不显示 [ 71%]

天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...

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

504. TypeError: Cannot read property '_byteLength' of null [ 71%]

...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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

505. laya.display.css.TextStyle_API3.0 [ 71%]

...xternals Only exported Menu Globals "laya/display/css/TextStyle" TextStyle Class TextStyle 文本的样式类 Hierarchy TextStyle Index Constructors constructor Properties align bold color font fontSize italic leading strikethrough stroke strokeColor underline underlineColor valign Constructors cons...

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

506. import自己写的类,new出来后为什么一片漆黑 [ 71%]

...文件夹npc,并且创建一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:Base...

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

507. UI-Clip [ 71%]

...ya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "../../res/ui/button-7.png"; private clipSkin: string = "../../res/ui/num0-9.png"; private bgSkin: string = "../../res/ui/coutDown.png"; private counter: Clip; private currFrame: n...

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

508. 鼠标交互-修正交互区域 [ 71%]

...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_FixInteractiveRegion { private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...

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

509. new GlowFilter Uncaught TypeError: GlowFilter is not a constructor [ 71%]

...er的时候报错: GlowFilter is not a constructor Uncaught Can not find class srcipt/game/Game_App.ts 问题状态 最新活动: 2017-02-18 10:13 浏览: 1889 关注: 1 人 ZGH • 2019-02-28 15:36 怎么解决啊?谢谢

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

510. 分享一个Shader版的CoolDown实现 [ 71%]

...------------------- import Shader = laya.webgl.shader.Shader;     export class coolDownShader extends Shader {         /**          * 当前着色器的一个实例对象。          */         public static shader: coolDownShader = new coolDownShader();         constructor()...

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