大约有 341 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
...的字符像素,并且支持scroll接口。 ```typescript module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); La...
来源: Laya2.0_文档 发布时间: 20210715
分享:销毁龙骨动画! package { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFac...
来源: Laya_社区 发布时间: 20170406
... += 2; this.ape2.rotation -= 4; } } new Sprite_NodeControl();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_NodeControl { private ape1: Sprite; private ape2: Sprite; constr...
来源: Laya2.0_示例 发布时间: 20241117
... -1 * Math.floor(info.beta) / 90 * 70 + compassImg.y; } })() module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; import...
来源: Laya_示例 发布时间: 20241117
...Laya.stage.width, Laya.stage.height); } } new SmartScale_T();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Image = Laya.Image; import WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes:...
来源: Laya2.0_示例 发布时间: 20241117
...链接 提交 1 个回复 cuixueying 赞同来自: 请参考:package { import laya.ani.swf.MovieClip; import laya.display.Sprite; import laya.events.Event; import laya.ui.Image; import laya.utils.Browser; public class TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500...
来源: Laya_社区 发布时间: 20170106
...tation += 2; this.ape2.rotation += 2; } } new Sprite_Pivot();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() ...
来源: Laya2.0_示例 发布时间: 20241117
# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...
来源: Laya2.0_文档 发布时间: 20210714
# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...
来源: Laya2.0_文档 发布时间: 20200929
...eta) / 90 * 70 + compassImg.y; } } new InputDevice_Compass();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; import...
来源: Laya2.0_示例 发布时间: 20241117