Optional
playbackInfo: Partial<GameAnimationPlaybackConfig>返回一个 GameAnimation 对象,用于控制动画的播放。
Returns a GameAnimation object to control the animation's playback.
一个包含所有世界动画的 GameAnimation 数组。
An array of GameAnimation objects for all world animations.
一个包含所有实体动画的 GameAnimation 数组。
An array of GameAnimation objects for all entity animations.
一个包含所有玩家动画的 GameAnimation 数组。
An array of GameAnimation objects for all player animations.
创建一个新的 GameEntity 或复制一个现有实体。
如果超出实体配额,则返回 null
。
Creates a new GameEntity or duplicates an existing one.
Returns null
if the entity quota is exceeded.
使用类似于 jQuery 选择器的语法搜索游戏中的实体,并返回匹配的第一个实体。 更多示例参见 GameSelectorString。
Searches for entities in the game using a syntax similar to jQuery selectors and returns the first matching entity. For more examples, see GameSelectorString.
使用类似于 jQuery 选择器的语法搜索游戏中的实体,并返回所有匹配的实体。 更多示例参见 GameSelectorString。
Searches for entities in the game using a syntax similar to jQuery selectors and returns all matching entities. For more examples, see GameSelectorString.
使用类似于 jQuery 选择器的语法搜索游戏中的实体,并返回所有匹配的实体。 更多示例参见 GameSelectorString。
Searches for entities in the game using a syntax similar to jQuery selectors and returns all matching entities. For more examples, see GameSelectorString.
Optional
options: Partial<GameRaycastOptions>Optional
pitch?: numberOptional
position?: GameVector3Optional
volume?: numberOptional
config: GameSoundEffectConfig用于配置新区域的 GameZoneConfig 对象。
The GameZoneConfig object to configure the new zone.
新创建的 GameZone 对象。
The newly created GameZone object.
Zh
GameWorld 是引擎 API 的主要入口点。使用此对象可以控制场景的全局属性,如天气、一天中的时间等,并对存在于世界中的所有 GameEntity 进行搜索。
En
The GameWorld is the main entry point for the engine API. Use this object to control global properties of the scene, such as weather, time of day, etc., and to search for all GameEntitys that exist in the world.