大约有 207 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
... /** * Graphics解析器 */ // class GraphicParser extends laya.display.GraphicAnimation { // protected _getTextureByUrl(url: string): string; // static parseAnimationData(aniData: any): any; // } } T15_UITest.zip 2017-08-17 0 0 分享 微博 ...
来源: Laya_社区 发布时间: 20170817
...flash.text.TextFieldType; import flash.ui.Keyboard; public class TextInput extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWidth = Laya.windo...
来源: Laya_社区 发布时间: 20151225
...可以super.x super.y 打个比方 假设在LAYA TS 里这么写 class XXX extends Sprite { public set x(value:number) { this._x = value; } public get x():number { return this._x; } } 这样写在WEB环境下固然可行 但是却会导致打包坐标不生效 而在AS3就不一样了 可以直接su...
来源: Laya_社区 发布时间: 20180227
...rt laya.renders.Render; import laya.utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private var mouseConstrai...
来源: Laya_社区 发布时间: 20171214
...yboard; const { regClass, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res =&...
来源: Laya3.0_文档 发布时间: 20251010
Laya2.7.1 射线提示rayCast未定义 export default class click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(...
来源: Laya_社区 发布时间: 20200801
...laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public _move_img: Image; // public _list: List; //创建一个 List 类的实例对象 list 。 private n:number = 0; private x0:numb...
来源: Laya_社区 发布时间: 20200203
...什么在onUpdate会输出一次为空 export default class mtTest extends Laya.Script{ lab:Laya.Label; onAwake():void{ } onStart():void{ this.lab=this.owner as Laya.Label; } ...
来源: Laya_社区 发布时间: 20200602
...现打字效果等 /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ ...
来源: Laya_社区 发布时间: 20191103
...逻辑代码package game { import laya.display.Animation; public class Ani extends Animation { private var _isSlow:Boolean=true; public function Ani() { } public function get isSlow():Boolean { return _isSlow; } //isSlow:是否放慢速度 public function set isSlow(value:Boolean):void { _isSlow=v...
来源: Laya_社区 发布时间: 20161014