Search Issue Tracker
Fixed
Fixed in 1.0.13
Votes
0
Found in [Package]
1.0.12
Issue ID
BEHAVB-341
Regression
No
Cloned scene agent shares graph instance due to SceneProcessor Pre-initialization
Steps to reproduce:
- Create a new BehaviorGraph and open it
- Disable the OnStart Repeat
- Connect a LogMessage and SetVariableValue to the OnStart node
- Assign a BlackboardVariable<String> to both node with a default value "Hello World"
- SetVariableValue node set the string to "Invalid"
- Attach the Graph to a GameObject in the scene
- Create a script with the provided code and attach it to a GameObject in the scene, then assign to it the agent Gao as Prefab
- Enter playmode and press space several times
Actual results:
- Hello World
- Invalid
- Invalid
- ...
Expected results:
- Hello World
- Hello World
- ...
Reproducible with versions: 1.0.12, 1.0.7
Code:
{code}
public class CloneAgent : MonoBehaviour
{
[SerializeField]
private GameObject m_Prefab;
private GameObject m_Instance;
private void Awake() => m_Prefab.SetActive(false);
private void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
Clone();
}
}
private void Clone()
{
if (m_Instance != null)
{
Destroy(m_Instance);
}
m_Instance = Instantiate(m_Prefab);
m_Instance.SetActive(true);
}
}
{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment