Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TLabAltoh committed Jan 2, 2025
1 parent 57c66d5 commit 45e24be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified Plugins/Android/libTLabWebView-release.aar
Binary file not shown.
3 changes: 2 additions & 1 deletion Runtime/Sample/CreateNewInRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ namespace TLab.WebView.Sample
public class CreateNewInRuntime : MonoBehaviour
{
[SerializeField] private GameObject m_prefab;
[SerializeField] private Transform m_anchor;

private Queue<GameObject> m_instances = new Queue<GameObject>();

public void CreateNew()
{
var instance = Instantiate(m_prefab);
var instance = (m_anchor == null) ? Instantiate(m_prefab) : Instantiate(m_prefab, m_anchor.position, m_anchor.rotation);

instance.transform.parent = null;

Expand Down

0 comments on commit 45e24be

Please sign in to comment.