大约有 1,764 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0057 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...的类。 * @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
...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
...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
...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
LayaFlash getQualifiedClassName和组件定义问题 1.flash.utils.getQualifiedClassName; 现有一个rect_mc, flash库的中链接类名为:Rect, 尝试.getQualifiedClassName(rect_mc)得到的是"iflash.display::MovieClip"而不是"Rect".虽说不支持链接类,但是很多时候写这个类名...
来源: Laya_社区 发布时间: 20160407
...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
...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
...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
...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
... 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