大约有 2,159 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya3.0_api(672) Laya_社区(472) Laya2.0_api(357) laya_api(289) Laya_示例(150) Laya2.0_示例(112) Laya2.0_文档(98) Laya3.0_文档(9)
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function crea...
来源: Laya_示例 发布时间: 20260303
...}3、Data的相关代码public class Data extends EventDispatcher { public function Data() { } protected function dataSourceChange(eventType:String, property:String, value:Object):void { var data:* = this[property]; this[property] = value; if (value != data) { var result:Boolean = event(eventType , ...
来源: Laya_社区 发布时间: 20161223
... private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, WebGL); drawSomething(); } private function drawSomething():void ...
来源: Laya2.0_文档 发布时间: 20210714
...ined in laya/utils/Delegate.ts:77 Returns number Methods add add(callback: Function, target?: any, args?: any[]): void Defined in laya/utils/Delegate.ts:12 Parameters callback: Function Optional target: any Optional args: any[] Returns void clear clear(): void Defined in laya/utils/Delegate.ts:47 Re...
来源: Laya3.0_api 发布时间: 20231115
...display.Text; import laya.webgl.WebGL; public class Text_AutoSize { public function Text_AutoSize() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); setup(); } private function setup():void { var t1:Text = createText(); //设置不进行任何裁剪 t1.overflow = Text.VISIBLE;...
来源: Laya2.0_文档 发布时间: 20210715
... y:Number (可选)Y轴偏移量。 Method Detailrecover()method public function recover():void 回收到对象池 Constant DetailIDConstantpublic static const ID:String = DrawTextureMon May 13 2019, 03:12 PM +08:00
来源: Laya2.0_api 发布时间: 20190513
...c var gravity:Vector3重力。Constructor DetailPhysics()Constructorpublic function Physics()Method DetailrayCast()method public static function rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number, layer:int = 0):void 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰...
来源: laya_api 发布时间: 20170929
...npropertyaction:IFilterAction [read-only] Implementation public function get action():IFilterActiontypeproperty type:int [read-only] Implementation public function get type():intFri Sep 29 2017, 06:34 PM +08:00
来源: laya_api 发布时间: 20170929
...ailcomXmlpropertycomXml:Object XML 数据。 Implementation public function get comXml():Object public function set comXml(value:Object):voidFri Sep 29 2017, 06:34 PM +08:00
来源: laya_api 发布时间: 20170929
...收一个renderTarget WebGLRTMgrMethod DetailgetRT()method public static function getRT(w:int, h:int):RenderTexture2D 获得一个renderTarget 暂时先按照严格大小判断。 Parameters w:int h:intReturnsRenderTexture2D — releaseRT()method public static function releaseRT(rt:RenderTexture2...
来源: Laya2.0_api 发布时间: 20190513