docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct OnStart

    Implements
    IEntryPointNode
    INode
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Runtime
    Assembly: solution.dll
    Syntax
    [NodeSearcherItem("Events/On Start")]
    [Serializable]
    [NodeDescription("The **On Start** event node is triggered when the object containing the script is enabled and runs only one time. Use the **On Update** event if your action needs to run at every frame.", Example = "![](OnStart/OnStartExample_01.gif)\r\n\r\nIn this example, we have a game object (CubeAlive) containing a visual script. When we go in play mode, the script will log \"**I'm Alive!**\" in the console 2 seconds after starting.", DataSetup = "Game object needs the following components\r\n\r\n- Convert to Entity. Set to **Convert And Destroy**\r\n- Scripting Graph Authoring pointing on our visual script.\r\n\r\n![](OnStart/SimpleExample_01.png)")]
    public struct OnStart : IEntryPointNode, INode

    Fields

    Name Description
    Enabled
    Output

    Methods

    Name Description
    Execute<TCtx>(TCtx)

    Extension Methods

    IVisualScriptingEventReceiverJobExtensions.Schedule<TJob, TEvent>(TJob, VisualScriptingEventSystem, JobHandle)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)