User Groups & Content Targeting

or vip content or areas or how does content monetization or personalization may work for you

HoloFair supports content monetization, personalization or in other words Content Targeting using Custom User Groups. The general use of this feature is simple. You will need to first decide what the content that exist in your scene and 2 components on a empty gameObject: UserGroupModel and BasicUserGroupView. In UserGroupModel it is enough to specify a number that represents a user group, which then HoloFair will use to decide what UnityEvent to raise: Valid or Invalid. Then don't forget to specify what should happen on one the events whenever user group of a user either matches or doesn't match the one you specified.

Now your question might be "What should be the number?". That is for you to decide how to index the groups that may exist in your project. HoloFair generally supports numbers from 0 to 2147483645 per world, so you have a good amount of numbers to use.

Another question "How does HoloFair know what number or user group belongs to what user?". To answer this question please read the page about Custom User Authentication.

A more specific real life scenario will be available shortly to explain entire user group management in a single tutorial.

Last updated