Every line of 'godot get current scene' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
79 func (me *Camera) Scene() *Scene { 80 return Core.Libs.Scenes.get(me.sceneID) 81 }
122 func (o *PackedScene) GetState() scenestate.SceneState { 123 log.Println("Calling PackedScene.GetState()") 124 125 // Build out the method's arguments 126 ptrArguments := make([]gdnative.Pointer, 0, 0) 127 128 // Get the method bind 129 methodBind := gdnative.NewMethodBind("PackedScene", "get_state") 130 131 // Call the parent method. 132 // SceneState 133 retPtr := scenestate.NewEmptySceneState() 134 gdnative.MethodBindPtrCall(methodBind, o.GetOwner(), ptrArguments, retPtr) 135 136 // If we have a return type, convert it from a pointer into its actual object. 137 ret := scenestate.NewSceneStateFromPointer(retPtr) 138 139 log.Println(" Got return value: ", ret) 140 return ret 141 }
922 func (o *Node) GetSceneInstanceLoadPlaceholder() gdnative.Bool { 923 //log.Println("Calling Node.GetSceneInstanceLoadPlaceholder()") 924 925 // Build out the method's arguments 926 ptrArguments := make([]gdnative.Pointer, 0, 0) 927 928 // Get the method bind 929 methodBind := gdnative.NewMethodBind("Node", "get_scene_instance_load_placeholder") 930 931 // Call the parent method. 932 // bool 933 retPtr := gdnative.NewEmptyBool() 934 gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr) 935 936 // If we have a return type, convert it from a pointer into its actual object. 937 ret := gdnative.NewBoolFromPointer(retPtr) 938 return ret 939 }
3505 func obj_Scene(xn *xmlx.Node, n string) (obj *nga.Scene) { 3506 if (xn != nil) && (len(n) > 0) { 3507 xn = xcn(xn, n) 3508 } 3509 if xn != nil { 3510 obj = init_Scene(xn) 3511 } 3512 return 3513 }
376 func (o *Camera) IsCurrent() gdnative.Bool { 377 //log.Println("Calling Camera.IsCurrent()") 378 379 // Build out the method's arguments 380 ptrArguments := make([]gdnative.Pointer, 0, 0) 381 382 // Get the method bind 383 methodBind := gdnative.NewMethodBind("Camera", "is_current") 384 385 // Call the parent method. 386 // bool 387 retPtr := gdnative.NewEmptyBool() 388 gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr) 389 390 // If we have a return type, convert it from a pointer into its actual object. 391 ret := gdnative.NewBoolFromPointer(retPtr) 392 return ret 393 }
107 func (o *Listener) MakeCurrent() { 108 //log.Println("Calling Listener.MakeCurrent()") 109 110 // Build out the method's arguments 111 ptrArguments := make([]gdnative.Pointer, 0, 0) 112 113 // Get the method bind 114 methodBind := gdnative.NewMethodBind("Listener", "make_current") 115 116 // Call the parent method. 117 // void 118 retPtr := gdnative.NewEmptyVoid() 119 gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr) 120 121 }
349 func (o *ProceduralSky) GetSunColor() gdnative.Color { 350 log.Println("Calling ProceduralSky.GetSunColor()") 351 352 // Build out the method's arguments 353 ptrArguments := make([]gdnative.Pointer, 0, 0) 354 355 // Get the method bind 356 methodBind := gdnative.NewMethodBind("ProceduralSky", "get_sun_color") 357 358 // Call the parent method. 359 // Color 360 retPtr := gdnative.NewEmptyColor() 361 gdnative.MethodBindPtrCall(methodBind, o.GetOwner(), ptrArguments, retPtr) 362 363 // If we have a return type, convert it from a pointer into its actual object. 364 ret := gdnative.NewColorFromPointer(retPtr) 365 366 log.Println(" Got return value: ", ret) 367 return ret 368 }
574 func (o *Tween) SetActive(active gdnative.Bool) { 575 log.Println("Calling Tween.SetActive()") 576 577 // Build out the method's arguments 578 ptrArguments := make([]gdnative.Pointer, 1, 1) 579 ptrArguments[0] = gdnative.NewPointerFromBool(active) 580 581 // Get the method bind 582 methodBind := gdnative.NewMethodBind("Tween", "set_active") 583 584 // Call the parent method. 585 // void 586 retPtr := gdnative.NewEmptyVoid() 587 gdnative.MethodBindPtrCall(methodBind, o.GetOwner(), ptrArguments, retPtr) 588 589 }
36 func (get *New) SetScene(Scene []string) *New { 37 get.Scene = Scene 38 return get 39 }
629 func (o *SpatialMaterial) GetEmission() gdnative.Color { 630 //log.Println("Calling SpatialMaterial.GetEmission()") 631 632 // Build out the method's arguments 633 ptrArguments := make([]gdnative.Pointer, 0, 0) 634 635 // Get the method bind 636 methodBind := gdnative.NewMethodBind("SpatialMaterial", "get_emission") 637 638 // Call the parent method. 639 // Color 640 retPtr := gdnative.NewEmptyColor() 641 gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr) 642 643 // If we have a return type, convert it from a pointer into its actual object. 644 ret := gdnative.NewColorFromPointer(retPtr) 645 return ret 646 }