Home
Manual
Reference
Scripting
Scripting Reference
MaterialEditor
.SetTextureScale
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Attributes
Enumerations
History
Index
MaterialEditor
All Members
Variables
isVisible
Functions
Awake
ColorProperty
FloatProperty
GetColor
GetFloat
GetTexture
GetTextureOffset
GetTextureScale
GetVector
OnDisable
OnEnable
PropertiesChanged
PropertiesGUI
RangeProperty
RegisterPropertyChangeUndo
SetColor
SetFloat
SetShader
SetTexture
SetTextureOffset
SetTextureScale
SetVector
ShaderProperty
TextureProperty
UndoRedoPerformed
VectorProperty
Inherited Variables
hideFlags
name
serializedObject
target
targets
Inherited Functions
DrawDefaultInspector
GetInfoString
GetInstanceID
GetPreviewTitle
HasPreviewGUI
OnInspectorGUI
OnInteractivePreviewGUI
OnPreviewGUI
OnPreviewSettings
RenderStaticPreview
Repaint
ToString
Inherited Class Functions
CreateEditor
CreateInstance
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
operator !=
operator ==
operator bool
function
SetTextureScale (propertyName :
String
, value :
Vector2
, coord :
int
) :
void
Parameters
Name
Description
propertyName
Name of the texture property that you wish to modify the scale of.
value
Scale to set.
coord
Set the x or y component of the scale (0 for x, 1 for y).
Description
Set the scale of a given texture property.