大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...ort laya.d3.core.Sprite3D; import laya.d3.math.Vector3; class MonkeyScript extends Script3D { private var rotation:Vector3 = new Vector3(0, 0.03, 0); override public function onAwake():void { trace("onAwake"); } override public function onStart():void { trace("onStart"); } override public function o...
来源: Laya2.0_文档 发布时间: 20210714
...关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class BaseTexture extends Bitmap { static WARPMODE_REPEAT: number = 0; static WARPMODE_CLAMP: number = 1; /**寻址模式_重复。*/ static FILTERMODE_POINT: number = 0; /**寻址模式_不循环。*/ static FILTERMODE_BILINEAR: number = 1;...
来源: Laya_社区 发布时间: 20200222
..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Clip = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox 的name 为“selectBox”时...
来源: Laya_示例 发布时间: 20251130
IDE时间轴动画帧数乱序导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } } FrameAnimation初始化时_sortIndexFun 方法没有被赋值...
来源: Laya_社区 发布时间: 20191115
... % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite { public static WIDTH: number = 110; public static HEIGHT: number = 110; private speed: number = 5; private bloodBar: Sprite; private animation: Animation; private nameLabel: Text; constructor(images: Array) { ...
来源: Laya_示例 发布时间: 20251130
...个函数中调用会自动变成undefined public class MainPageController extends Scene { public var camera:Camera; public function MainPageController(){ super(); Laya.stage.scaleMode =...
来源: Laya_社区 发布时间: 20190328
...实现类似List的功能的Grid,下面是List的官方代码 class List extends Box implements IRender, IItem { /**改变 <code>List</code> 的选择项时执行的处理器,(默认返回参数: 项索引(index:number))。*/ selectHandler: Handler; /**单元格渲染处理器(...
来源: Laya_社区 发布时间: 20180801
...这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); th...
来源: Laya2.0_文档 发布时间: 20210715
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.RadioGroup }) public radiogroup: Laya.RadioGroup; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radiogr...
来源: Laya3.0_文档 发布时间: 20251016
... = new GameScene(); Laya.stage.addChild(scene1); public class GameScene extends Scene { public function GameScene() { Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); } private function completeHandler():void{ ...
来源: Laya_社区 发布时间: 20170825