Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GameFlow

Visual Scripting + Automation for Unity · By Evasion Games

Issue when instantiate a prefab with GameFlow at runtime

A topic by stylophone created Jul 07, 2021 Views: 84 Replies: 1
Viewing posts 1 to 2

When instantiating at runtime, a simple prefab with GameFlow like this:

will throw

NullReferenceException: Object reference not set to an instance of an object GameFlow.Program._OnPrepare () (at <f07c123dcbb84a5c9a2fb7a216216afe>:0) GameFlow.Block.Prepare () (at <f07c123dcbb84a5c9a2fb7a216216afe>:0) GameFlow.GFBehaviour.PrepareBlocks () (at <f07c123dcbb84a5c9a2fb7a216216afe>:0) GameFlow.GFBehaviour.Start () (at <f07c123dcbb84a5c9a2fb7a216216afe>:0)

Actually duplicate an existing GameFlow gameobject in scene at runtime can reproduce this issue too.