docs.unity3d.com
    目次を表示する/隠す

    Class State

    Inheritance
    Object
    GraphElement<StateGraph>
    State
    AnyState
    NesterState<TGraph, TMacro>
    Inherited Members
    GraphElement<StateGraph>.guid
    GraphElement<StateGraph>.BeforeAdd()
    GraphElement<StateGraph>.AfterAdd()
    GraphElement<StateGraph>.AfterRemove()
    GraphElement<StateGraph>.Dispose()
    GraphElement<StateGraph>.InstantiateNest()
    GraphElement<StateGraph>.UninstantiateNest()
    GraphElement<StateGraph>.dependencyOrder
    GraphElement<StateGraph>.HandleDependencies()
    GraphElement<StateGraph>.graph
    GraphElement<StateGraph>.IGraphElement.graph
    GraphElement<StateGraph>.IGraphItem.graph
    GraphElement<StateGraph>.deserializationDependencies
    GraphElement<StateGraph>.GetAotStubs(HashSet<Object>)
    GraphElement<StateGraph>.Prewarm()
    GraphElement<StateGraph>.CopyFrom(GraphElement<StateGraph>)
    GraphElement<StateGraph>.ToString()
    Namespace: Unity.VisualScripting
    Syntax
    public abstract class State : GraphElement<StateGraph>, IState, IGraphElementWithDebugData, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable

    Fields

    DefaultWidth

    Declaration
    public const float DefaultWidth = 170F
    Field Value
    Type Description
    Single

    Properties

    canBeDestination

    Declaration
    [DoNotSerialize]
    public virtual bool canBeDestination { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IState.canBeDestination

    canBeSource

    Declaration
    [DoNotSerialize]
    public virtual bool canBeSource { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IState.canBeSource

    incomingTransitions

    Declaration
    public IEnumerable<IStateTransition> incomingTransitions { get; }
    Property Value
    Type Description
    IEnumerable<IStateTransition>
    Implements
    IState.incomingTransitions

    isStart

    Declaration
    [Serialize]
    public bool isStart { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IState.isStart

    outgoingTransitions

    Declaration
    public IEnumerable<IStateTransition> outgoingTransitions { get; }
    Property Value
    Type Description
    IEnumerable<IStateTransition>
    Implements
    IState.outgoingTransitions

    outgoingTransitionsNoAlloc

    Declaration
    protected List<IStateTransition> outgoingTransitionsNoAlloc { get; }
    Property Value
    Type Description
    List<IStateTransition>

    position

    Declaration
    [Serialize]
    public Vector2 position { get; set; }
    Property Value
    Type Description
    Vector2
    Implements
    IState.position

    transitions

    Declaration
    public IEnumerable<IStateTransition> transitions { get; }
    Property Value
    Type Description
    IEnumerable<IStateTransition>
    Implements
    IState.transitions

    width

    Declaration
    [Serialize]
    public float width { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IState.width

    Methods

    BeforeRemove()

    Declaration
    public override void BeforeRemove()
    Overrides
    Unity.VisualScripting.GraphElement<Unity.VisualScripting.StateGraph>.BeforeRemove()
    Implements
    INotifiedCollectionItem.BeforeRemove()

    CopyFrom(State)

    Declaration
    protected void CopyFrom(State source)
    Parameters
    Type Name Description
    State source

    CreateData()

    Declaration
    public IGraphElementData CreateData()
    Returns
    Type Description
    IGraphElementData
    Implements
    IGraphElementWithData.CreateData()

    CreateDebugData()

    Declaration
    public IGraphElementDebugData CreateDebugData()
    Returns
    Type Description
    IGraphElementDebugData
    Implements
    IGraphElementWithDebugData.CreateDebugData()

    Disconnect()

    Declaration
    public void Disconnect()

    FixedUpdateImplementation(Flow)

    Declaration
    protected virtual void FixedUpdateImplementation(Flow flow)
    Parameters
    Type Name Description
    Flow flow

    GetAnalyticsIdentifier()

    Declaration
    public override AnalyticsIdentifier GetAnalyticsIdentifier()
    Returns
    Type Description
    AnalyticsIdentifier
    Overrides
    Unity.VisualScripting.GraphElement<Unity.VisualScripting.StateGraph>.GetAnalyticsIdentifier()
    Implements
    IAnalyticsIdentifiable.GetAnalyticsIdentifier()

    Instantiate(GraphReference)

    Declaration
    public override void Instantiate(GraphReference instance)
    Parameters
    Type Name Description
    GraphReference instance
    Overrides
    Unity.VisualScripting.GraphElement<Unity.VisualScripting.StateGraph>.Instantiate(Unity.VisualScripting.GraphReference)
    Implements
    IGraphElement.Instantiate(GraphReference)

    LateUpdateImplementation(Flow)

    Declaration
    protected virtual void LateUpdateImplementation(Flow flow)
    Parameters
    Type Name Description
    Flow flow

    OnBranchTo(Flow, IState)

    Declaration
    public virtual void OnBranchTo(Flow flow, IState destination)
    Parameters
    Type Name Description
    Flow flow
    IState destination
    Implements
    IState.OnBranchTo(Flow, IState)

    OnEnter(Flow, StateEnterReason)

    Declaration
    public virtual void OnEnter(Flow flow, StateEnterReason reason)
    Parameters
    Type Name Description
    Flow flow
    StateEnterReason reason
    Implements
    IState.OnEnter(Flow, StateEnterReason)

    OnEnterImplementation(Flow)

    Declaration
    protected virtual void OnEnterImplementation(Flow flow)
    Parameters
    Type Name Description
    Flow flow

    OnExit(Flow, StateExitReason)

    Declaration
    public virtual void OnExit(Flow flow, StateExitReason reason)
    Parameters
    Type Name Description
    Flow flow
    StateExitReason reason
    Implements
    IState.OnExit(Flow, StateExitReason)

    OnExitImplementation(Flow)

    Declaration
    protected virtual void OnExitImplementation(Flow flow)
    Parameters
    Type Name Description
    Flow flow

    Uninstantiate(GraphReference)

    Declaration
    public override void Uninstantiate(GraphReference instance)
    Parameters
    Type Name Description
    GraphReference instance
    Overrides
    Unity.VisualScripting.GraphElement<Unity.VisualScripting.StateGraph>.Uninstantiate(Unity.VisualScripting.GraphReference)
    Implements
    IGraphElement.Uninstantiate(GraphReference)

    UpdateImplementation(Flow)

    Declaration
    protected virtual void UpdateImplementation(Flow flow)
    Parameters
    Type Name Description
    Flow flow

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    GraphsExceptionUtility.GetException(IGraphElementWithDebugData, GraphPointer)
    GraphsExceptionUtility.SetException(IGraphElementWithDebugData, GraphPointer, Exception)
    GraphsExceptionUtility.HandleException(IGraphElementWithDebugData, GraphPointer, Exception)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)