大约有 621 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0203 秒)
Laya_社区(348) Laya3.0_api(74) Laya2.0_api(58) Laya2.0_文档(54) laya_api(53) Laya3.0_文档(14) Laya2.0_示例(10) Laya_示例(10)
...ublic/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawPieCmd" DrawPieCmd Class DrawPieCmd 绘制扇形 Hierarchy DrawPieCmd Index Properties fillColor lineColor lineWidth radius x y ID Accessors endAngle startAngle Methods getBoundPoints recover Properties fillColo...
来源: Laya3.0_api 发布时间: 20231115
...保一个对象能够被回收,需要删除对该对象的所有引用。Sprite提供的`destory()`方法会帮助设置内部引用为null。 例如,以下代码确保对象能够被作为垃圾回收: 1. `//创建一个Sprite实例` 2. `var sp = new Laya.Sprite();` 3. `//将sp内部引用设...
来源: Laya2.0_文档 发布时间: 20210715
...ublic/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawRoundRectCmd" DrawRoundRectCmd Class DrawRoundRectCmd Hierarchy DrawRoundRectCmd Index Properties fillColor height lb lineColor lineWidth lt percent rb rt width x y ID Methods getBoundPoints recover Properties f...
来源: Laya3.0_api 发布时间: 20231115
...精灵显示试试呢,不要用浏览器的 var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位...
来源: Laya_社区 发布时间: 20180103
...保一个对象能够被回收,需要删除对该对象的所有引用。Sprite提供的`destory()`方法会帮助设置内部引用为null。 例如,以下代码确保对象能够被作为垃圾回收: 1. `//创建一个Sprite实例` 2. `var sp:Laya.Sprite = new Laya.Sprite();` 3. `//将sp内...
来源: Laya2.0_文档 发布时间: 20210715
...AMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) { // lv.addChild(sp); // console.log("添加预制体"); ...
来源: Laya_社区 发布时间: 20220506
...drawingBufferHeight,gl.RGBA,gl.UNSIGNED_BYTE,pixels); let sp:Laya.Sprite = new Laya.Sprite(); let w: number = gl.drawingBufferWidth; let h: number = gl.drawingBufferHeight; let texture2d: Laya.Texture2D = new Laya.Textu...
来源: Laya_社区 发布时间: 20200815
...e/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来...
来源: Laya2.0_文档 发布时间: 20210715
...似接口针对一个组件截屏? public static function getBase64Str(sp:Sprite, canvasWidth:Number, canvasHeight:Number, offsetX:Number=0, offsetY:Number=0):String { //定义一个HTMLCanvas来接收截屏返回的HTMLCanvas对象;截取原始图片中从(offsetX,offsetY)坐标开始的图片...
来源: Laya_社区 发布时间: 20180610
...定的对象回收至对象池内。 ```javascript package { import laya.display.Sprite; import laya.display.Stage; import laya.ui.Image; import laya.utils.Pool; import laya.webgl.WebGL; public class PoolTest { //创建新对象的时间 private var createTime:int=0; public function PoolTest() { //...
来源: Laya2.0_文档 发布时间: 20210715