大约有 2,995 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0154 秒)
Laya_社区(1062) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(107)
...导在ios浏览器表现异常 代码: module laya { export class Sprite_Guide { private width = 750; private height = 1334; constructor() { Laya3D.init(this.width, this.height); ...
来源: Laya_社区 发布时间: 20200119
...nly exported Menu Globals "laya/physics/joint/RevoluteJoint" RevoluteJoint Class RevoluteJoint 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Hierarchy JointBase RevoluteJoint Index Constructors constructor Properties _extra _singleton anchor collideConnected otherBody o...
来源: Laya3.0_api 发布时间: 20231115
...口类GameMain.ts,编写如下代码:** ```typescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor =...
来源: Laya2.0_文档 发布时间: 20210714
...1.0的code.js的意思 然后现在我新加了一个文件asd.ts class asd { } 这个时候它并不会被打入bundle.js, 得把这段代码改成export default class asd { }才能在bundle.js里找到它?? 有没有什么方法或者构建选项可以不用写那么多export和im...
来源: Laya_社区 发布时间: 20190109
...ce/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL)...
来源: Laya2.0_示例 发布时间: 20251219
...a.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.color...
来源: Laya_示例 发布时间: 20251219
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.HScrollBar)。 HScrollBar 组件的图像资源示例:  (图1)  (图2)  (图3)  (图1)  (图2)  (图3) ![图片0.p...
来源: Laya2.0_文档 发布时间: 20210715
...ACING = 200, VERTICAL_SPACING = 100, X_OFFSET = 100, Y_OFFSET = 50, skins; class UI_CheckBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.st...
来源: Laya2.0_示例 发布时间: 20251219
... exported Menu Globals "laya/d3/core/render/ScreenTriangle" ScreenTriangle Class ScreenTriangle ScreenTriangle 类用于创建全屏三角形。 Hierarchy Resource ScreenTriangle Index Constructors constructor Properties destoryedImmediately lock name url uuid DEBUG Accessors cpuMemory destroyed gpu...
来源: Laya3.0_api 发布时间: 20231102