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

大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)

1881. Sprite-新手引导 [ 55%]

...ya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite; private guideContainer:Sprite; private tipContainer:Sprite; private guideSteps:Array = [ { x: 151, y: 575, radius:150, tip:"../../res/guide/help6.png", tipx:200, tipy:250 }, { x: 883, ...

来源: Laya_示例 发布时间: 20260303

1882. IDE提示类已存在,怎么办 [ 55%]

...动过;直接F5运行就报出类已经存在的错误; Warning!,this class[MiniAdpter] already exist: Object 2018-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自: 新建项目试一下~...

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

1883. UI-Clip [ 55%]

...ya.Image; import Handler = Laya.Handler; 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: n...

来源: Laya_示例 发布时间: 20260303

1884. laya.d3.shader.Shader3D [ 55%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Shader3DProperties | Methods | Constants Packagelaya.d3.shaderClasspublic class Shader3DInheritanceShader3D BaseShader laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Prope...

来源: laya_api 发布时间: 20170929

1885. 设置pivot后,精灵位置显示位置不正确 [ 55%]

...14,设置了sprite的pivot和pos,结果位置不正确 // 程序入口 class GameMain { private sp: Laya.Sprite; constructor() { Laya.init(2000, 1500); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height)...

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

1886. 鼠标交互-修正交互区域 [ 55%]

...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_FixInteractiveRegion { private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...

来源: Laya_示例 发布时间: 20260303

1887. 官方最新的native(LayaNative-SDK2.0.3)不支持视频播放 [ 55%]

...https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.device.media.Video  是可以播放的 稍后文档会修改 2018-12-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 大林 相关问题 发起问题...

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

1888. 关于3d项目中component的问题 [ 55%]

...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...

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

1889. sprite 设置为静态变量后,无法从舞台移除 [ 55%]

...t laya.net.Loader; import laya.utils.Stat; import laya.webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onCl...

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

1890. laya.d3.component.animator.Animator_API3.0 [ 55%]

... Only exported Menu Globals "laya/d3/component/Animator/Animator" Animator Class Animator Animator 类用于创建动画组件。 Hierarchy Component Animator Index Constructors constructor Properties _controller _extra _singleton cullingMode owner runInEditor scriptPath CULLINGMODE_ALWAYSANIMATE CU...

来源: Laya3.0_api 发布时间: 20231115