StringAsset Class

Summary

A UnityEngine.ScriptableObject which holds a Animancer.StringReference based on its UnityEngine.Object.name.
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
Base Types
  • ScriptableObject
graph BT Type-->Base0["ScriptableObject"] Type-.->Interface0["IComparable<StringAsset>"] Type-.->Interface1["IConvertable<StringReference>"] Type-.->Interface2["IConvertable<string>"] Type-.->Interface3["IEquatable<StringAsset>"] Type-.->Interface4["IEquatable<StringReference>"] Type-.->Interface5["IEquatable<string>"] Type-.->Interface6["IHasKey"] click Interface6 "/animancer/api/Animancer/IHasKey" Type["StringAsset"] class Type type-node

Syntax

[AnimancerHelpUrl(typeof(StringAsset))]
[CreateAssetMenu(menuName = Strings.MenuPrefix + "String Asset", order = Strings.AssetMenuOrder + 2)]
public class StringAsset : ScriptableObject, IComparable<StringAsset>, 
    IConvertable<StringReference>, IConvertable<string>, IEquatable<StringAsset>, 
    IEquatable<StringReference>, IEquatable<string>, IHasKey

Attributes

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

Properties

Name Value Summary
EditorComment string
[Editor-Only] [UnityEngine.SerializeField] An unused Editor-Only field where you can explain what this asset is used for.
Key Object
A key which can be used in dictionaries and hash sets.
Name StringReference
A Animancer.StringReference to the UnityEngine.Object.name.

Methods

Name Value Summary
Compare(StringAsset, StringAsset) int
Compares the Animancer.StringReference.Strings.
static
CompareTo(StringAsset) int
Compares the Animancer.StringReference.Strings.
Equals(Object) bool
Is the Animancer.StringAsset.Name equal to the `other`?
Equals(string) bool
Is the Animancer.StringAsset.Name equal to the `value`?
Equals(StringAsset) bool
Is the Animancer.StringAsset.Name equal to the `other`?
Equals(StringReference) bool
Is the Animancer.StringAsset.Name equal to the `other`?
GetHashCode() int
Returns the hash code of the Animancer.StringAsset.Name.
ToString() string
Returns the Animancer.StringAsset.Name.
ToStringReferences(StringAsset[]) StringReference[]
Creates a new array containing the Animancer.StringAsset.Names.
static
ToStrings(StringAsset[]) string[]
Creates a new array containing the Animancer.StringAsset.Names.
static

Operators

Name Value Summary
implicit operator string(StringAsset) string
implicit operator StringReference(StringAsset) StringReference
operator !=(string, StringAsset) bool
operator !=(StringAsset, string) bool
operator !=(StringAsset, StringAsset) bool
operator !=(StringAsset, StringReference) bool
operator !=(StringReference, StringAsset) bool
operator ==(string, StringAsset) bool
operator ==(StringAsset, string) bool
operator ==(StringAsset, StringAsset) bool
operator ==(StringAsset, StringReference) bool
operator ==(StringReference, StringAsset) bool