SampleButton Class

Summary

A simple system for dynamically creating a list of buttons based on a template.
Assembly
Animancer.dll
Namespace
Animancer.Samples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["SampleButton"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Sample Button")]
[AnimancerHelpUrl(typeof(SampleButton))]
public class SampleButton : MonoBehaviour

Remarks

Documentation: Basic Scene Setup - Buttons

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.

Methods

Name Value Summary
AddButton(int, string, UnityAction) SampleButton
Initializes this button when called with `index` 0. Otherwise, creates a copy of this button and initializes it instead.
OnValidate() void
Automatically gathers the serialized fields.