• Home
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Godot Community

Godot Community

Initilize Array[Object] inside of Dictonary

Scheduled Pinned Locked Moved Beginner's Corner
3 Posts 2 Posters 27 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • akaSkipperundefined Offline
    akaSkipperundefined Offline
    akaSkipper _init()
    wrote on last edited by
    #1

    var dict : Dictionary = { key : Array[Object] }
    Can we do this somehow in GDScript.

    var dict : Dictionary = { key : Array[Object]}
    

    I know that :

    var arr : Array[Obejct] = []
    var dict : Dictionary = { key : arr }
    

    does work, but somehow i would love to just type it directly into the dictonary.

    Thanks for answers, keep coding.

    1 Reply Last reply
    1
  • Salodoundefined Offline
    Salodoundefined Offline
    Salodo _init()
    wrote on last edited by
    #2

    Its, probably not possible, considering gdscript just got typed, for loops in 4.2, but if you really want you could submit a report to get it added.

    akaSkipperundefined 1 Reply Last reply
    0
  • akaSkipperundefined Offline
    akaSkipperundefined Offline
    akaSkipper _init()
    replied to Salodo on last edited by
    #3

    @Salodo Alright, thanks mate!

    1 Reply Last reply
    0

© 2023 Godot Community
Privacy - Terms - Contact

  • Login

  • Don't have an account? Register

Powered by Godot Community
  • First post
    Last post
0
  • Home
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

  • Don't have an account? Register