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

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

861. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

... class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loa...

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

862. 其他引擎的Demo-Example_21 [ 42%]

...colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; this.createCanvases(); Laya.timer.frameLoop(1, this, this.animate); Laya.stage.on('mousedown', this, this.onMouseDown); Laya.sta...

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

863. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 42%]

...参考代码   export class CatmullRomSpline { private points: number[]; constructor(points: number[]) { if (points.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } ...

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

864. UI-CheckBox [ 42%]

...ded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

865. 一个简单的跑酷曲面shader分享 [ 42%]

...adonly Z_Distance: number = Laya.Shader3D.propertyNameToID("u_ZDistance"); constructor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } p...

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

866. laya.html.dom.HTMLIframeElement_API3.0 [ 42%]

...加载外并解析数据 Hierarchy HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight context...

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

867. 3D网格添加刚体后设置欧拉角出现位置错误 [ 42%]

...基础碰撞器)中运行即可: class PhysicsWorldBaseCollider{     constructor(){         //初始化引擎         Laya3D.init(0, 0);         //设置画布模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE...

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

868. laya.display.EffectAnimation_API3.0 [ 42%]

...通过LayaAir IDE创建。 Hierarchy FrameAnimation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthS...

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

869. laya加载unity插件导出的场景 physics3D is not a function [ 42%]

...弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像...

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

870. 引擎 TiledMap 居然不支持图块翻转 [ 42%]

...MapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;             this.isHaveAnimation = false; ...

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