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

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

941. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 49%]

...ya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loo...

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

942. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 49%]

...uthor ... Hierarchy Material ExtendTerrainMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERMODE_OPAQUE RENDERMODE_TRANSPARENT RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADER...

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

943. laya.d3.component.animation.CameraAnimations [ 49%]

...式。localModeproperty public var localMode:Boolean = true变换模式。Constructor DetailCameraAnimations()Constructorpublic function CameraAnimations() 创建一个新的 CameraAnimations 实例。 Sat Jun 3 2017, 06:12 PM +08:00

来源: laya_api 发布时间: 20170603

944. 场景管理 · LayaAir3.0文档 · LAYABOX [ 49%]

... Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Ms...

来源: Laya3.0_文档 发布时间: 20230717

945. 性能测试-卡通人物 [ 49%]

...ate moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("../../res/cartoonCharacters/cartoonCharactors.json", Ha...

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

946. 求助,屏幕旋转后滚动条没有跟随旋转 [ 49%]

...跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t....

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

947. 天空-天空穹 [ 49%]

....load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

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

948. 输入设备-贪吃蛇(重力感应) [ 49%]

...private vx:number = 0 private vy:number = 0; private targetPosition:Point; constructor() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.fram...

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

949. Laya3D场景加载问题 [ 49%]

...<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         ...

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

950. 这种进度条怎么实现? [ 49%]

...20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE &...

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