大约有 2,154 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0055 秒)
Laya3.0_api(672) Laya_社区(471) Laya2.0_api(357) laya_api(289) Laya_示例(150) Laya2.0_示例(112) Laya2.0_文档(98) Laya3.0_文档(5)
...lic class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private ...
来源: Laya_社区 发布时间: 20160913
... 个回复 wudi199553 赞同来自: class () 方法 public static function class(functionRef:Function, fullQulifiedName:String, superClass:Function, miniName:String):void 在JS中,通过Laya.class来定义类,同时可以指定其继承关系。 参数 functionRef:Function — ...
来源: Laya_社区 发布时间: 20171219
...ate var liveGraphics:Graphics; private var canvasGraphics:Graphics; public function PIXI_Example_21() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); Laya.stage.on('mousedown', this, onMouseDown); Laya.stage...
来源: Laya2.0_示例 发布时间: 20241119
...ublic class TiledMap_AnimationTile { private var tiledMap:TiledMap; public function TiledMap_AnimationTile() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHO...
来源: Laya2.0_示例 发布时间: 20241119
...下Sprite3D中特有的克隆接口`instantiate`。 ```typescript public function static instantiate(original: Sprite3D, parent: Node = null, worldPositionStays: Boolean = true, position: Vector3 = null, rotation: Quaternion = null): Sprite3D; ``` - original :原始精灵。 - parent:父节点。 - ...
来源: Laya2.0_文档 发布时间: 20210715
...ort laya.ui.Label; import laya.webgl.WebGL; public class UI_Label { public function UI_Label() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER;...
来源: Laya2.0_文档 发布时间: 20210714
...dScale { private var ape:Sprite; private var scaleDelta:Number = 0; public function Sprite_RoateAndScale() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.sta...
来源: Laya2.0_示例 发布时间: 20241119
...utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite(); Laya.stage.addChild(rule_ct...
来源: Laya_社区 发布时间: 20170215
...Blur { private const apePath:String = "../../res/apes/monkey2.png"; public function Filters_Blur() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scale...
来源: Laya2.0_示例 发布时间: 20241119
...t; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); t...
来源: Laya_社区 发布时间: 20161124