Installing Hash Studios AdFlux
Version: This guide is for Unity 2022.3.6f1. The steps may be different in future versions of Unity.
Crafted by Hash Studios for UdonSharp worlds, this Unity Poster Prefab encapsulates our dedication to innovation, supreme quality, and fluid user experiences. This guide will walk you through the installation process for Hash Studios AdFlux.
Features
- Multiple Poster Display
- Smooth Transitions
- Website Linking
- Customizable Display Duration
- Ease of Use
- Premium Experience
VR Showcase World
Experience Hash Studios AdFlux for yourself here: VRChat Showcase World
Requirements
You can learn how to set up your project beforehand at our project setup guide.
Installation Steps
1. Download and Import the Prefab
- Download the Hash Studios AdFlux prefab from our website.
- Import the prefab into your Unity project:
- In Unity, go to
Assets
>Import Package
>Custom Package...
- Locate and select the downloaded prefab package.
- Click
Import
to add the prefab to your project.
- In Unity, go to
2. Add the Prefab to Your World
- Drag the AdFlux prefab into your world from the Project window.
- Right-click on the prefab in the Hierarchy window and select
Prefab > Unpack Prefab
.
3. Set Up Posters and URLs
For more detailed information on configuring images to sprites for the prefab, visit our Adding Images and Creating Sprites Guide.
- Under
Posters to Display
, put the posters you want to display. Please look at the Changing Images to Sprites section of the documentation for more information if you can't add your posters. - Under
URL Per Poster
, enter the URLs you want to display based on the index:- The first poster at index 0 under
Posters to Display
will show the link at index 0 of theURL Per Poster
array.
- The first poster at index 0 under
4. Set Up Materials for Posters
Important: Each poster needs its own material.
- Go to the prefab files, navigate to
Materials
, and selectPoster Material
. - Duplicate the material by pressing
Ctrl + D
(orCmd + D
on macOS). - Add the new duplicated material to the material slot under the
Materials for the Posters
section of the Inspector.
5. Customize Display Duration
- Change the
Time Per Poster
to however long you want each poster to display.
6. Add Emission (Optional)
If you wish to add an emission effect to the prefab:
-
Inside the
PosterAd_Internal.cs
file, locate thechangeMaterial()
function. -
Add the following line of code to enable the emission texture:
posterScript.posterMaterial.SetTexture("_EmissionMap", posterScript.postersToDisplay[i]);
By following these steps, you can successfully install Hash Studios AdFlux and create a dynamic poster display in your virtual world.
For more detailed information and resources, visit the Official Website or watch the YouTube Tutorial.