大约有 59 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0053 秒)
...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...
来源: Laya_示例 发布时间: 20241117
... an instance of an object r.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, Boolean A_2) r.b () r.b (System.String A_0) LayaAir3D.exportResource (Boolean isDebug, Int32 Platformindex, System.String lastname) LayaAir3D.ExportResources () LayaAir3D.OnGUI () 2019-10-15 0 0 分享 微博 QZON...
来源: Laya_社区 发布时间: 20180403
...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...
来源: Laya2.0_示例 发布时间: 20241117
...连接服务器 客户端代码: let PORT: number = 8080; let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{ private static _instance: NetSocket; public static get instance(): NetSocket { if (!NetSocket._instance) { ...
来源: Laya_社区 发布时间: 20170602
...e.Vector3 A_3, UnityEngine.Quaternion A_4, UnityEngine.Vector3 A_5, System.String& A_6) (at <174bbe38e5444724b5b9eeb4600df769>:0) o.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <174bbe38e5444724b5b9eeb4600df769&...
来源: Laya_社区 发布时间: 20201230
...playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL....
来源: Laya_社区 发布时间: 20190115
...yUrl("ws://127.0.0.1:9000");//建立连接; } } public function send(msg:String):void { if(this.socket.connected){ var byte:Byte = new Byte(); byte.writeUTFString(msg); this.socket.send(byte.buffer); } } private function openHandler(event:Object = null):void { //正确建立连接; trace("openHa...
来源: Laya_社区 发布时间: 20180202
...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...
来源: Laya2.0_文档 发布时间: 20210715
... 移除指定的标签 * @param label */ public function removeLabel(label:String):void { if (_labelDic && _labelDic[label]) { var tTweenData:tweenData = _labelDic[label]; if (tTweenData) { var tIndex:int = _tweenDataList.indexOf(tTweenData); if (tIndex > -1) { _tweenDataList.splice(tInde...
来源: Laya_社区 发布时间: 20181218
...eraction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHe...
来源: Laya_示例 发布时间: 20241117