大约有 397 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0066 秒)
...。 如果是代码引用资源,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行...
来源: Laya3.0_文档 发布时间: 20250103
...*************************************************************************/ class DollGunRole extends GunRole{ public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 ); public static _ani_cached:boolean = false; /...
来源: Laya_社区 发布时间: 20180515
...类的排版和渲染函数以实现自定义的富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分...
来源: Laya_社区 发布时间: 20180417
...适用。下面给出一段代码加载分包的示例代码: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执...
来源: Laya3.0_文档 发布时间: 20250103
...ted All Inherited Externals Only exported Menu Globals "laya/ui/Tree" Tree Class Tree Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 example package { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function...
来源: Laya3.0_api 发布时间: 20231115
...基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurik...
来源: Laya3.0_文档 发布时间: 20250310
...基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurik...
来源: Laya3.0_文档 发布时间: 20250104
...rt Burst = Laya.Burst; export class JinBi extends ShuriKenParticle3D { constructor() { let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat"); ...
来源: Laya_社区 发布时间: 20170605
...机添加了这个脚本。 (图6-2) 脚本的代码为: const { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: num...
来源: Laya3.0_文档 发布时间: 20250103
...代码如下: /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ...
来源: Laya3.0_文档 发布时间: 20250310