• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,651 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0056 秒)

691. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 77%]

... WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.c...

来源: Laya2.0_文档 发布时间: 20210715

692. APK扩展机制(TypeScript-LayaNative原生服务-LayaNative进阶) [ 77%]

...的`getExpansionMainPath`函数,设置正确的zip路径。 ``` public String getExpansionMainPath() { return "/storage/emulated/0/Android/test/com.layabox.conch6/test.zip"; } public String getExpansionPatchPath() { return ""; } ``` ### 5.开启外部存储权限 安卓6.0以上的机器可能不...

来源: Laya2.0_文档 发布时间: 20210715

693. laya.ui.Component [ 77%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component cacheAs : String 指定显示对象...

来源: laya_api 发布时间: 20170929

694. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 77%]

...eGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fi...

来源: Laya_社区 发布时间: 20180517

695. 关于新的微信小游戏本地缓存API建议 [ 77%]

...新提供的手动缓存API public static function downLoadFile(fileUrl:String, fileType:String = "",callBack:Handler = null,encoding:String = "ascii"):void   和原有loader加载方式产生分裂,导致游戏加载代码不统一,并且不支持传入数组批量下载,当要加...

来源: Laya_社区 发布时间: 20180312

696. UI-Clip [ 77%]

...ler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // ...

来源: Laya2.0_示例 发布时间: 20260130

697. __JS__(as变量)为什么不能用? [ 77%]

...用? __JS__("document.title = '标题'");//这样是可以的。var str:String = "document.title = '标题'" _JS_(str); //这样是不行的为什么,如果想执行js方法,用as的变量如何实现? 2016-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

来源: Laya_社区 发布时间: 20160723

698. UI-ComboBox [ 77%]

...ndler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stag...

来源: Laya2.0_示例 发布时间: 20260130

699. Sprite-屏幕截图 [ 77%]

...y3.png"),Handler.create(this,this.onLoaded)); } private createButton(skin: string,name:string,cb:Function,index:number): Button { var btn: Button = new Button(skin,name); Laya.stage.addChild(btn); btn.on(Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn....

来源: Laya2.0_示例 发布时间: 20260130

700. unity 新建场景,预览报错。 [ 77%]

...d not destroy the object. n.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, System.Boolean A_2) (at <f23f19a62c944610ba98639869d48a79>:0) n.b () (at <f23f19a62c944610ba98639869d48a79>:0) n.b (System.String A_0) (at <f23f19a62c944610ba98639869d48a79>:0) LayaAir3D.exportRe...

来源: Laya_社区 发布时间: 20210607