Show / Hide Table of Contents

Class SurveyRow

A monobehaviour to go on the prefab for a survey row. This is already done for the provided survey row prefab.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
SurveyRow
Namespace: PlayUR.Surveys
Assembly: PlayUR.dll
Syntax
public class SurveyRow : MonoBehaviour

Fields

| Improve this Doc View Source

backgroundColor

Declaration
public Color backgroundColor
Field Value
Type Description
Color
| Improve this Doc View Source

backgroundColorHighlighted

Declaration
public Color backgroundColorHighlighted
Field Value
Type Description
Color
| Improve this Doc View Source

popup

Declaration
[HideInInspector]
public SurveyPopup popup
Field Value
Type Description
SurveyPopup
| Improve this Doc View Source

surveyQuestion

Declaration
[HideInInspector]
public SurveyQuestion surveyQuestion
Field Value
Type Description
SurveyQuestion

Methods

| Improve this Doc View Source

Fill(SurveyQuestion)

Populate the survey row with the given question.

Declaration
public void Fill(SurveyQuestion question)
Parameters
Type Name Description
SurveyQuestion question

The question scriptable object data.

| Improve this Doc View Source

IndexSelected()

Get the selected response for this question.

Declaration
public int IndexSelected()
Returns
Type Description
int

The selected response index, or -1 for no selection.

| Improve this Doc View Source

Save(Action)

Save the value to PlayUR analytics.

Declaration
public void Save(Action action)
Parameters
Type Name Description
Action action
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX