mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	 2d20fc39aa
			
		
	
	
		2d20fc39aa
		
	
	
	
	
		
			
			We already removed it from the online docs with #35132. Currently it can only be "Built-In Types" (Variant types) or "Core" (everything else), which is of limited use. We might also want to consider dropping it from `ClassDB` altogether in Godot 4.0.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8" ?>
 | |
| <class name="GradientTexture" inherits="Texture" version="3.2">
 | |
| 	<brief_description>
 | |
| 		Gradient-filled texture.
 | |
| 	</brief_description>
 | |
| 	<description>
 | |
| 		GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]).
 | |
| 	</description>
 | |
| 	<tutorials>
 | |
| 	</tutorials>
 | |
| 	<methods>
 | |
| 	</methods>
 | |
| 	<members>
 | |
| 		<member name="gradient" type="Gradient" setter="set_gradient" getter="get_gradient">
 | |
| 			The [Gradient] that will be used to fill the texture.
 | |
| 		</member>
 | |
| 		<member name="width" type="int" setter="set_width" getter="get_width" default="2048">
 | |
| 			The number of color samples that will be obtained from the [Gradient].
 | |
| 		</member>
 | |
| 	</members>
 | |
| 	<constants>
 | |
| 	</constants>
 | |
| </class>
 |