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

大约有 1,764 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0057 秒)

741. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...的类。 * @return 此类型标识的一个对象。 */ static getItemByClass<T>(sign: string, cls: new () => T): T { if (!Pool._poolDic[sign]) return new cls(); var pool = Pool.getPoolBySign(sign); if (pool.length) { var rst = pool.pop(); rst[Pool.POOLSIGN] = false; } else { rst = new cls...

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

742. 子容器的事件问题 [ 65%]

...nsole.log("为什么这里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     } ...

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

743. 鼠标交互-Hold [ 65%]

...Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // ...

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

744. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 65%]

...9-12-16 11:24 浏览: 2130 关注: 2 人 执迷不悟 • 2019-12-16 11:20 class AnimatorDemo { private scene:Laya.Scene3D; resource constructor() { //初始化引擎 Laya3D.init(0, 0); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开...

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

745. LayaFlash getQualifiedClassName和组件定义问题 [ 65%]

LayaFlash getQualifiedClassName和组件定义问题 1.flash.utils.getQualifiedClassName; 现有一个rect_mc, flash库的中链接类名为:Rect, 尝试.getQualifiedClassName(rect_mc)得到的是"iflash.display::MovieClip"而不是"Rect".虽说不支持链接类,但是很多时候写这个类名...

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

746. laya.d3.physics.shape.SphereColliderShape_API3.0 [ 65%]

...nu Globals "laya/d3/physics/shape/SphereColliderShape" SphereColliderShape Class SphereColliderShape SphereColliderShape 类用于创建球形碰撞器。 Hierarchy ColliderShape SphereColliderShape Implements IClone Index Constructors constructor Properties needsCustomCollisionCallback SHAPEORIENTA...

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

747. laya.d3.component.animator.AnimatorTransition_API3.0 [ 65%]

...Globals "laya/d3/component/Animator/AnimatorTransition" AnimatorTransition Class AnimatorTransition Hierarchy AnimatorTransition Index Constructors constructor Accessors conditions destState exitByTime exitTime mute name transduration transstartoffset Methods addCondition check removeCondition Const...

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

748. 加载-错误处理和进度 [ 65%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; La...

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

749. 滤镜的集中实现 [ 65%]

...hengxi 感谢,仿照楼主写了个as3版本的。这里贴出来 public class FilterTest { public function FilterTest() { //初始化引擎 Laya.init(1110, 1110,WebGL); //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,c...

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

750. 加载TiledMap 不显示 [ 65%]

... import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自动切换...

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