大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0051 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...直接变成Laya.XProgressBar。在1.7的时候,他们都会直接转为public prGrs:XProgressBar的啊。如果手动去修改,一编译后又变成Laya.XProgressBar了。这样很影响效率等问题啊 君昊 • 2020-08-05 17:40 可以,谢啦
来源: Laya_社区 发布时间: 20200804
在使用资源版本控制时,URL.formatURL中有个bug public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat !=...
来源: Laya_社区 发布时间: 20171213
...旋转 2018-03-07 0 1 分享 微博 QZONE 微信 bepa_wang 赞同来自: public function MainView() { super(); mainCan = new Sprite(); Laya.stage.addChild(mainCan); ...
来源: Laya_社区 发布时间: 20180306
...ath, type: Loader.BUFFER }], Handler.create(this, this.onAssetsLoaded)); } public onAssetsLoaded(): void { var tTexture: Texture = Loader.getRes(this.mTexturePath); var arraybuffer: ArrayBuffer = Loader.getRes(this.mAniPath); this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this...
来源: Laya_示例 发布时间: 20260106
...port laya.utils.Browser; import laya.utils.Tween; import laya.webgl.WebGL; public class Interaction_Swipe { //swipe滚动范围 private const TrackLength:int = 200; //触发swipe的拖动距离 private const TOGGLE_DIST:int = TrackLength / 2; private var buttonPosition:int; private var beginPosition...
来源: Laya_示例 发布时间: 20260106
... Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: import { ui } from "../ui/layaMaxUI"; export default class AttackView...
来源: Laya_社区 发布时间: 20180926
...rt shaderModule.customMaterials.CustomMaterial; /** * ... * @author ... */ public class Shader_Simple { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function Shader_Simple() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NON...
来源: Laya_示例 发布时间: 20260106
...ineWidth (可选)边框宽度。 */ public function drawPoly(x:Number, y:Number, points:Array, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void {目前暂时不支持颜色渐变,请使用其他替代方式替换渐变功能! 2018-04-16 0 2 分...
来源: Laya_社区 发布时间: 20180416
...另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个错: Uncaught ReferenceError: common is not defined at new main (main.ts:4) at main.ts:11 我试了很多次,都是这样,哪...
来源: Laya_社区 发布时间: 20180208
...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/Resource" Resource Class Resource Resource 资源存取类。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTM...
来源: Laya3.0_api 发布时间: 20231115