Good morning,

how can I access the secondary and generic properties of a TextureRect (or of any other unique Node) through code? Specifically, the Scale:

I wrote this in my code but it isn't working, obviously:

func _process(delta):
	
	if doUnselectBtnAnim:
		if self.scale.x > 1:
			self.scale.x -= 0.1;
			
		if self.scale.y > 1:
			self.scale.y -= 0.1;

Coming from Unity, my idea of accessing the Scale property could be this:

self.Control.scale;

But this isn't working either.

I want to understand the logic behind this, may someone explain it to me?

Thank you in advance!

This discussion was caught in the moderation queue since you have not confirmed your account yet.

Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. From what I can tell, you can resend a confirmation email when you log into your account if you cannot find the first verification email.

If you need help confirming your email, please let us know. Thanks! :smile:

Upon a quick look at the Godot docs, the scale property is actually called rect_scale.

Also the self keyword can be omitted and you can just access the property directly.

@TwistedTwigleg said:

This discussion was caught in the moderation queue since you have not confirmed your account yet.

Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. From what I can tell, you can resend a confirmation email when you log into your account if you cannot find the first verification email.

If you need help confirming your email, please let us know. Thanks! :smile:

Hello!

Yes I know that I have not confirmed my e-mail but I am trying to resend the confirmation email but it doesn't appear in my inbox :( May I tell my email to you in PM in order to investigate the issue?

Thanks!

@SIsilicon28 said: Upon a quick look at the Godot docs, the scale property is actually called rect_scale.

Also the self keyword can be omitted and you can just access the property directly.

Thank you so much! Now it works. :)

@Silver978 said:

@TwistedTwigleg said:

This discussion was caught in the moderation queue since you have not confirmed your account yet.

Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. From what I can tell, you can resend a confirmation email when you log into your account if you cannot find the first verification email.

If you need help confirming your email, please let us know. Thanks! :smile:

Hello!

Yes I know that I have not confirmed my e-mail but I am trying to resend the confirmation email but it doesn't appear in my inbox :( May I tell my email to you in PM in order to investigate the issue?

Thanks!

Sure, no problem. Feel free to PM me and we can look into it from there. :smile:

@TwistedTwigleg said:

@Silver978 said:

@TwistedTwigleg said:

This discussion was caught in the moderation queue since you have not confirmed your account yet.

Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. From what I can tell, you can resend a confirmation email when you log into your account if you cannot find the first verification email.

If you need help confirming your email, please let us know. Thanks! :smile:

Hello!

Yes I know that I have not confirmed my e-mail but I am trying to resend the confirmation email but it doesn't appear in my inbox :( May I tell my email to you in PM in order to investigate the issue?

Thanks!

Sure, no problem. Feel free to PM me and we can look into it from there. :smile:

Sorry, it was in the Spam folder, problem solved :# Thank you for your time! =)

3 years later