大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0048 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...ay not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exch...
来源: Laya_社区 发布时间: 20191104
...mport laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite();...
来源: Laya_社区 发布时间: 20170523
...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...
来源: Laya2.0_示例 发布时间: 20241125
... 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:string = "<span> </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this....
来源: Laya_社区 发布时间: 20180314
...ya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D...
来源: Laya3.0_文档 发布时间: 20241014
...); return image; } </script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,51...
来源: Laya_社区 发布时间: 20170718
...ayaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.cha...
来源: Laya_社区 发布时间: 20171202
...perty } = Laya; @regClass() export class UI_TextArea extends Laya.Script { private skin: string = "resources/res/ui/textarea.png"; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.loa...
来源: Laya3.0_文档 发布时间: 20241014
...ayaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.cha...
来源: Laya_社区 发布时间: 20181112
...ebgl.WebGL; public class Yj_Customer { private var panel:Panel; public function Yj_Customer() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser....
来源: Laya_社区 发布时间: 20180612