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
Component
Behaviour
MonoBehaviour
SurveyRow
Assembly: PlayUR.dll
Syntax
public class SurveyRow : MonoBehaviour
Fields
|
Improve this Doc
View Source
backgroundColor
Declaration
public Color backgroundColor
Field Value
|
Improve this Doc
View Source
backgroundColorHighlighted
Declaration
public Color backgroundColorHighlighted
Field Value
|
Improve this Doc
View Source
Declaration
[HideInInspector]
public SurveyPopup popup
Field Value
|
Improve this Doc
View Source
surveyQuestion
Declaration
[HideInInspector]
public SurveyQuestion surveyQuestion
Field Value
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 |
|