Answers for "multiple parameters in inspector unity package"

C#
1

how to instance in a node with code godot

#Load the resourse using preload
const MySmokeResource = preload("res://SmokeScene.tscn")

func _ready():
    #Make instance
    var GrabedInstance= MySmokeResource.instance()
    #You could now make changes to the new instance if you wanted
    CurrentEntry.name = "SmokeA"
    #Attach it to the tree
    self.add_child(GrabedInstance)
Posted by: Guest on March-16-2020
0

unity deactive all object in list

public List<GameObject> childrens = new List<GameObject>();

    void Update()
    {
        if(/* Something */)
        {
            foreach (var obj in childrens)
                obj.SetActive(false);
        }
    }
Posted by: Guest on April-06-2020

Code answers related to "multiple parameters in inspector unity package"

C# Answers by Framework

Browse Popular Code Answers by Language