Skip to content

babafunke/MailingListSignUp-for-Unity-Game-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailingListSignUp for Unity Game Engine

This is a no-code Unity asset for integrating MailerLite with Unity to build an email list. The Mailing List Signup Asset is a prefab for adding subscribers to a Mailer Lite mailing list. It is an integration with Mailer Lite’s API which makes audience building easy for Unity game developers. 1_MailerLite Unity Package Slides

How to use

  • In MailerLite
    • Set up an account (it’s free)
    • Create a new API Key
    • Optional: Create Group(s) and copy the Group ID(s)
  • In Unity
    • Import the package
    • Create a new scene
    • Drag the SignUpFormCanvas prefab onto your scene from the Project menu. It is located in Assets/WafunkPublishing/MailingListSignUp/Prefabs
    • Create an empty Game object – your controller - and attach the SignUpScript.cs file to it. It is located in Assets/WafunkPublishing/MailingListSignUp/Scripts
    • Paste your MailerLite API Key into the ApiKeyInputField of the SignUpFormCanvas. Not to worry, it gets hidden when the app is run.
    • Select your controller and drag the NameInputField, EmailInputField, ApiKeyInputField, TermsButton and AlertPanel from the SignUpFormCanvas into the appropriate holders in the Inspector View
    • If you have a Menu Scene or any other scene you'd like to navigate to after a user successfully registers or skips registration, enter its name in the 'Menu Scene' field in the Inspector View
    • If you have any Group you'd like your signups to be automatically added to, then add the group ID(s) to the Group Id List field by clicking the '+' icons
    • Select the 'SkipButton' from the SignUpFormCanvas and set its click method to the 'SignUpScript.SkipRegistration' function
    • Select the 'SubmitButton' from the SignUpFormCanvas and set its click method to the 'SignUpScript.Register' function
    • Select the 'TermsAndConditionsButton' from the SignUpFormCanvas and set its click method to the 'SignUpScript.TermsChecked' function
    • You may also want to edit the TermsAndConditionsText text in the Inspector
  • Run the scene to test

Demo Scene

The DemoScene shows the asset in use. Note that the API Key is currently a dummy one so ensure you replace it with yours as described above. See below a step-by-step guide of how to import the package and test using the Demo Scene

2_MailerLite Unity Package Slides 3_MailerLite Unity Package Slides 4_MailerLite Unity Package Slides 5_MailerLite Unity Package Slides 6_MailerLite Unity Package Slides 7_MailerLite Unity Package Slides 8_MailerLite Unity Package Slides 9_MailerLite Unity Package Slides