Prefab

An asset by KoBeWi
The page banner background of a mountain and forest
Prefab hero image

Quick Information

0 ratings
Prefab icon image
KoBeWi
Prefab

Simple wrapper for PackedScene that allows you to quickly pack part of a scene, so you can have e.g. "internal scenes" that you don't need to save to separate file. Usage:var prefab = Prefab.create($AnyNode)$AnyNode will be freed and you can then instance the prefab to make copies of that node. Prefab automatically sets the owner of the children, so they are packed too. You can change how node is freed by passing Prefab.FREE_MODE_DEFERRED or Prefab.FREE_MODE_NONE as the second argument of create().You can also save the prefab to a file, but it's not the intended usage. See repo README for more info.

Supported Engine Version
4.0
Version String
1.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Simple wrapper for PackedScene that allows you to quickly pack part of a scene, so you can have e.g. "internal scenes" that you don't need to save to separate file. Usage:

var prefab = Prefab.create($AnyNode)

$AnyNode will be freed and you can then instance the prefab to make copies of that node. Prefab automatically sets the owner of the children, so they are packed too. You can change how node is freed by passing Prefab.FREE_MODE_DEFERRED or Prefab.FREE_MODE_NONE as the second argument of create().

You can also save the prefab to a file, but it's not the intended usage. See repo README for more info.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Prefab icon image
KoBeWi
Prefab

Simple wrapper for PackedScene that allows you to quickly pack part of a scene, so you can have e.g. "internal scenes" that you don't need to save to separate file. Usage:var prefab = Prefab.create($AnyNode)$AnyNode will be freed and you can then instance the prefab to make copies of that node. Prefab automatically sets the owner of the children, so they are packed too. You can change how node is freed by passing Prefab.FREE_MODE_DEFERRED or Prefab.FREE_MODE_NONE as the second argument of create().You can also save the prefab to a file, but it's not the intended usage. See repo README for more info.

Supported Engine Version
4.0
Version String
1.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers