# Frameplay Data Asset

Here we cover the Frameplay Data Asset in Unity.

For more information on the Frameplay Data Asset and best practices see our Developer Guidelines.

# General

Select the FrameplayData.asset file using the menu Frameplay > Developer Settings.

This creates a Scriptable Object - if one does not already exist - at the location Assets/FrameplaySDK/Resources/Data.

Image

# Properties

There are 3 main categories to select in the Inspector Window:-

ImageImageImage

# Develop Tab

# Ad Space Activation Collider Layer

To detect collisions between the Registered Camera and an Ad Space Activation collider we sometimes use a Physics check. To optimise this we keep the Activation Colliders on the same layer.

The Frameplay Plugin will attempt to automatically assign a layer index when creating a new Activation Collider. This can be manually changed if required.

See the Unity manual for more information on Layers.

# Ignored Transparent Layers

Layers containing transparent objects should be added here (TransparentFX, Ignore Raycast, Water etc). This is an optimization for our metrics collection and Ad Space visibility systems.

# Debug Logs

These will toggle logs in the console which show information and events regarding Ad Spaces when loading advertisements, and recording metrics.

# Ad Spaces in Open Scene

A list of all Ad Spaces in the active scene. You can click the ad space in the list to jump to it in the Scene. The red and green icon represent registered and unregistered states.

Last Updated: 8/31/2020, 5:01:41 AM