Introduction

This page lists the required settings and configuration for the AnyRPG Engine to work in Unity.

Layers

The table below lists the required layers and their purpose.

LayerNameSourceUsage
0DefaultUnityProjectors will shine on this layer. Invector controller requires anything walkable to use this layer.
1TransparentFXUnity
2Ignore RaycastUnityPlayer Nameplate uses this layer to prevent accidental highlight of player unit.
3Unity
4WaterUnity
5UIUnity
6Unity
7Unity
8PlayerInvector/AnyRPGUsed to allow camera to ignore anything that is not the player in player unit frame and character panel.
Many packages like Invector also rely on this player being set to this layer so they can find it.
9EnemyInvector
10CompanionAIInvector
11TriggersInvector
12StopMoveInvector
13ActionInvector
14HeadTrackInvector
15BodyPartInvector
16BlockAIRayCastInvector
17WalkableAnyRPGDeprecated. Replaced with Default for Invector compatibility
18FireLayerPackageUnused. This was probably from an import of a VFX package.
19PlayerPreviewAnyRPGUsed by the load game screen to allow the camera to ignore anything that is not a player preview.
20SpellEffectsAnyRPGUsed to ignore raycasts, collision, and all but the main camera rendering spell effects.
21MiniMapAnyRPGAnything on this layer will only be rendered by the minimap camera. Used for interactable icons such as questgiver showing on the minimap.
22CharacterUnitAnyRPGCharacterUnit is the layer that all characters should be placed on. This allows them to show in unit frames and is required for an AOE ability to target anything to avoid spending time processing hits against the ground, props, etc.
23UnitPreviewAnyRPGUnit previews such as unit spawn control panelswill place their targets on this layer so other cameras don’t render them.
24PetPreviewAnyRPGPet previews such as pet journals will place their targets on this layer so other cameras don’t render them.
25InteractableAnyRPGUsed to render non character units in Unit frames without rendering the environment.
26Unused
27Unused
28Unused
29Unused
30Unused
31AlwaysVisiblePackageThe Sun Temple uses this layer to make certain things in the background always visible regardless of culling distances.

Tags

AnyRPG uses certain tags for different functionality.

NameSourceUsage
DefaultSpawnLocationAnyRPGTag an object with this and the player will spawn at that point if there is no specific spawn location set in the scene node.
NorthEntranceAn easy tag that can be used for a spawn point when travelling between zones in the 4 main compass directions.
SouthEntranceAn easy tag that can be used for a spawn point when travelling between zones in the 4 main compass directions.
WestEntranceAn easy tag that can be used for a spawn point when travelling between zones in the 4 main compass directions.
EastEntranceAn easy tag that can be used for a spawn point when travelling between zones in the 4 main compass directions.