This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello, new to the engine, been trying to get along with the docs and references, but nothing specifically to what I'm looking for... or I haven't really looked that much...

Basically what I want is to access that sprite information or instance or however you call it here, so I can access its properties, transform, etc., etc.

in Engine by (25 points)

1 Answer

0 votes
Best answer

Sprite3D is a Node, if it is on the scene tree you can get it with get_node, then use any of the available methods for Sprite3D (and up on the class hierarchy) to do what you need.

by (7,954 points)
selected by

ok thank you very much! will try fiddle with that :D

If you look at the docs (web or Godot help), you will see it says Inherits: SpriteBase3D < GeometryInstance < VisualInstance < Spatial < Node < Object.

So, information on some things, like methods to get/set texture or frames will be on Sprite3D but others, like transform, will be on Spatial (you can notice that on the sections at the node inspector too).

thank you very much for helping me out

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.