大约有 1,253 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0047 秒)
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/PrismaticJoint" PrismaticJoint Class PrismaticJoint 平移关节:移动关节允许两个物体沿指定轴相对移动,它会阻止相对旋转 Hierarchy JointBase PrismaticJoint...
来源: Laya3.0_api 发布时间: 20231115
...../../lib/base/SingleBase"; import DdzFarmersAni from "./DdzFarmersAni"; export default class DdzLandlordAni extends SingleBase{ private mFactory: Laya.Templet = null; public isFinish = false; private mArmatureUsed:Array<Laya.Skeleton> = []; private mArmatureUnUsed:Array<Laya.Skeleton&...
来源: Laya_社区 发布时间: 20190821
...hit',//被举起 biu = 'biu',//被扔 dizziness = 'dizziness',//眩晕 } export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5; public sprite:Laya.Sprite3D = null; public animator:Laya.Animator = null; public Init(){ this.sprite = this.owner ...
来源: Laya_社区 发布时间: 20191026
...却可以在舞台上显示多个动画。 代码示例: ```typescript export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height,...
来源: Laya2.0_文档 发布时间: 20210715
...Element import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** ...
来源: Laya_社区 发布时间: 20180314
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/BoxCollider" BoxCollider Class BoxCollider 2D矩形碰撞体 Hierarchy ColliderBase BoxCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody run...
来源: Laya3.0_api 发布时间: 20231115
...aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clie...
来源: Laya_社区 发布时间: 20180226
...有范例 我这里提供一下其他的类型的范例供大家参考 export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number...
来源: Laya_社区 发布时间: 20181215
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Browser" Browser Class Browser Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Hierarchy Browser Index Properties PLATFORM_ANDROID PLATFORM_IOS PLATFORM_P...
来源: Laya3.0_api 发布时间: 20231115
... Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.s...
来源: Laya_社区 发布时间: 20170425