tween.SetUpdate methodEXAMPLE:
- /// DOTweenTMPAnimator animator = new DOTweenTMPAnimator(myTextMeshProTextField);
- /// Tween tween = animator.DOCharScale(characterIndex, scaleValue, duration);
- /// Class attributeDeGUI.BeginGUI
- DeGUI.BeginGUI,
- and changed at any time by calling DeGUI.ChangePalette.
- You can inherit from this class to create custom color palettes with more hColor options.
- public class VBoxScope : DeScope
- {
- public VBoxScope(GUIStyle style)
- {
- BeginVBox(style);
- }
-
- protected override void CloseScope()
- {
- EndVBox();
- }
- }
- Usage:
- using (new VBoxScope(myStyle) {
- // Do something
- }
- yield new WaitFor methods because
- those are Unity runtime, but you can instead use yield null/etc.yield new WaitForSeconds because it's not available in-editor).yield return DeEditorCoroutines.WaitForSeconds(1);
- adbReadFromDirPath = "Plugins/DOTween"
- file "Assets/Plugins/DOTween/aScript.cs" stored as "aScript.cs"
- file "Assets/Plugins/DOTween/Subdir/aScript.cs" stored as "Subdir/aScript.cs"
-
- DeEditorTools, use DeEditorToolsUtils.FindAllComponentsOfType
- instead, which is more efficient.
- GUI.changed to TRUE if the area is panned, a node is dragged, controlNodes change sorting or are deleted.IMPORTANT: this list should be part of your serialized class (MonoBehaviour or ScriptableObject),
- so it will be stored as a reference and modifying one will modify the other.DeGUI.BeginGUI,
- and changed at any time by calling DeGUI.ChangePalette.
- You can inherit from this class to create custom GUIStyle palettes with more options.
- Each of the sub-options require a public Init method to initialize the styles, which will be called via Reflection.
- DeGUI.BeginGUI.
- Override when adding new style subclasses.
- Returns TRUE if the styles were initialized or re-initialized
- EXAMPLE
- Rect scrollViewArea = ...;
- Rect drawArea = scrollViewArea;
- // Decrease the full drawing area to exclude scrollbars if necessary
- if (_scrollView.fullContentArea.height > scrollViewArea.height) drawArea = drawArea.Shift(0, 0, -11, 0);
- // Begin scrollView
- _scrollView = DeGUI.BeginScrollView(scrollViewArea, _scrollView);
- // Increase scrollView area correctly (or directly set it with SetFullContentHeight
- _scrollView.IncreaseContentHeightBy(...)
- // End
- DeGUI.EndScrollView();
-
- serializedObject.Update
- and serializedObject.ApplyModifiedProperties
-