Animal Controller
📥 Integrations📑 Changelog✅Social
  • 🤝Welcome to Malbers Animations Assets
  • 🌐Discover all my Assets
  • 💫What's New
  • 🌀Upcoming assets
  • 📋Changelog
  • ↗️Upcoming Changelog
  • 🛣️Road Map
  • ✍️End User Licence Agreement
  • 🌟Features
  • Improve Performance Tricks
  • 😓Know Limitations so far
  • 📥Downloads
  • QuickStart
    • 📖Guide to use All Malbers Assets with (AC)
    • 🔼Upgrade to URP
    • 🔼Upgrade to HDRP
    • 💔Common Issues
    • 🔔Tips and Tricks
  • Guides and Tutorials
  • 📺YouTube Tutorials
    • 📺Video Tutorials (On Queue)
  • 📱Mobile Setup Guide
    • Mobile Joystick
  • 🧐How to: Animal Controller
    • 🔹Play a Mode while Moving
    • 🔹Create and configure a new mode
    • 🔊Adding Sound Effects
    • 🔹Rebone Mesh Tutorial (Skin Mesh is Missing)
    • 🔹Add Movement with Non RootMotion Animations
    • 🔹Fetch a ball
    • 🔹Set up Timeline
    • 🔹Make Animal flee when see the animal Player
    • 🔹Animal Controller for Humanoids
    • Create a Shootable Weapon From Scratch
    • ⚔️How to Fix weapons offset and values (Bow, Pistol)
    • ✨Add a Effect to the Effect Manager
    • 🕹️Connect Inputs to the Controller
    • Modify the controller with a Stat
    • Use the Modify Stat Component
    • 📡Use a MEvent and MEvent Listeners
    • 💎Change from Faceted to Smooth poly art Animals
    • ⁉️Listen when an Mode starts or ends
  • 🐎How to: Horse Animset Pro
    • 🐴Call the Mount
    • 🤠Change Meshes for the Rider
    • 🏇Make any animal mountable
  • 🕺Strafing
  • Main Components
    • 🐺MAnimal Controller
      • General
        • Pivots
      • Speeds
      • 🔷States
        • 🕴️Idle
        • 🏃‍♂️Locomotion
        • 🌠Fall
        • 🤾‍♀️Basic Jump
        • 🤾‍♂️Root Motion Jump
        • 🐟Swim
        • 🐊UnderWater
        • 🧗‍♂️Climb
        • 🧗‍♂️Ledge Grab
        • 🦅Fly
        • 🪂Glide
        • 🧗Wall Run
        • 🧗Wall Run Vertical
        • ⛷️Slide
        • ☠️Death
        • ☠️Death Ragdoll
        • 🆕Creating a new State
      • 🟩Modes
        • 🟩Mode Behavior
        • 🟩Mode Sequence
      • 🅾️Stances
      • Advanced
      • Animal Modifiers
      • Events
      • Debug
      • Animal Animator Behaviors
      • Methods and Properties
    • 🎮Malbers Input & MInput
      • Methods and Properties
    • 🤖AI
      • AI Animal Control
      • MWayPoint
      • Wander Area
      • AI Target
      • Animal Brain
        • AI States
        • Tasks
          • General - Chance
          • General - Empty
          • General - Invoke Event
          • General - Send Message
          • General - Play Audio
          • General - Quick Align
          • General - Reaction
          • General - Set Look At Aim
          • General - Set Stat
          • General - Wait
          • Animal - Set Speed
          • Animal - Play Mode
          • Animal - Set/Play State
          • Animal - Set Stance
          • Animal - Set Strafe
          • Movement - Move Stop
          • Movement - Patrol
          • Movement - Set Destination
          • Movement - Set Target
          • Variables - Set Var Listener
          • Weapons - Weapon Tasks
        • Decisions
          • General - AND
          • General - Check Stat
          • General - Compare Stats
          • General - Look
          • General - OR
          • General - Is Task Done?
          • General - Wait
          • Movement - Has Arrived
          • Movement - Check Target
          • Animal - Check Mode
          • Animal - Check Stance
          • Animal - Check State
          • Variables - Check Scriptable Variable
          • Variables - Check Transform Var
          • Variables - Check Var Listener
          • Runtime Set - Is Target in Runtime Set
      • 📌Point Click
    • 🧨Reactions
    • 📶Combo Manager
    • ⚔️Weapon Manager
      • 🛡️MWeapon [General] Properties
      • 🛡️MWeapon [Damage] Properties
      • 🛡️MWeapon [IK] Properties
      • ⚔️MMelee
      • 🔫MShooteable
      • 🏹Bow
    • 〰️Path Constraint
      • 〰️MPath
      • 〰️Path Link (Straight)
      • 〰️Path Link (Cinemachine Path)
      • 〰️Path Creator(Sebastian Lague)
    • Speed Ground Changer
  • Scriptable Architecture
    • 💠Scriptables
      • 🔹Bool Var
      • 🔹Int Var
      • 🔹Float Var
      • 🔹String Var
      • 🔹ValueToString
      • 🔢Variable Listeners & Comparers
      • 🔰IDs
      • 🎫Tags
      • 🪝Transform Hook
      • 📣MEvents
      • 📣MEvent Listener
      • 📦Runtime gameobjects
    • 🔤MLocal Variables
  • Secondary Components
    • ⚔️MDamager
      • 🐾MAttack Trigger
      • 🐾Attack Trigger Behavior
      • 🏉MProjectile
      • 🏹Projectile Thrower
      • 🤯MExplosion
    • 🤕MDamageable
    • 🧊Zones
      • Public Methods
    • ✊Pick Up - Drop
    • ✊Pickable
    • 🚩Respawner
    • 🚩Respawner NPC
    • 🚩Simple Respawner
    • 🏁CheckPoint
    • IK Manager
      • IK Processors
      • Weight Processors
  • Global Components
    • 🧡Stats
      • 🔸Stat Modifier
      • 🔸Modify Stat <Component>
      • 🔸Modify Stat <Asset>
      • 👨‍💻Public Methods
    • Animator Behaviours
      • Message Behaviour
      • Random Behaviour
      • Is Kinematic Behaviour
      • Sound Behaviour
      • Rigid Constraint Behaviour
    • 🟩Trigger Proxy
    • 🔌Interactable
    • ⚡Interactor
    • ⁉️Conditions
    • 🎥Free Look Camera
    • 🎥Cinemachine
    • UI
      • Unity Utils
  • Riding System (HAP)
    • Horse Animset Pro (HAP) Riding System
    • The Art of (HAP)
    • Mount
      • Methods and Properties
    • MRider
      • Methods and Properties
    • Mount Triggers
    • Mount Points
  • Utilities
    • Material Changer
    • Active Meshes
    • Effect Manager
    • Effect Behavior
    • Animator Event Sounds
    • Blend Shapes
      • Blend Shape Preset
    • Look At
    • 🏹Aim
    • 🎯Aim Target
    • 🎯Lock On Target
    • 🐾Steps Manager
    • 🐾Step Trigger
    • 🔗Mode Align
    • 🔗Aligner
    • Component Selector
    • MAnimalAnimatorSync
    • Multiple Time Checker
    • MAnimalAnimatorSync
  • Annex
    • 🗃️Integrations
      • General HAP Integration
      • Rewired
      • Invector Templates
        • Invector Weapon Settings
      • Animals Controller + Invector
      • Ootii's Motion Controller
      • Opsive Ultimate Character Controller (UCC 3.03)
      • Opsive Ultimate Character Controller (UCC 3.08) Generic
      • AStar Pathfinding
      • Unity Input System (NEW)
        • New Input Link [Old Versions]
      • Game Creator
      • Game Kit Controller
    • Contact
    • 🤔FAQ
    • Refund Policy
  • Games using Malbers Animations
  • Interfaces
    • IAITarget
    • IWayPoint
    • IAIControl
    • IAim
    • IAlign
    • IGravity
    • IInteractor
  • ULTIMATE SELECTOR
    • Overview
    • Selector Manager
    • Selector Editor
    • Selector Controller
    • Selector Item
    • Selector UI
    • Selector Data
    • Changelog (Selector)
  • 🎒Malbers Inventory Add-On
    • Overview
      • Compatibility Matrix
      • Roadmap
      • Update Notes
  • Updating from v1.1.1 to v1.2 Instructions
  • Basic Setup Instructions
    • Creating a new Item
      • Adding Buffs/Debuffs to Items
      • Setting up Item Reactions
      • Custom Rarities
    • Setting up Item/Inventory Types
    • Set up the Pick/Drop Component
    • Setting up the Notifications
    • Setting up the Item Info panel
  • Inventory Set
    • Events
  • Inventory Master
  • Notification Manager
    • Notification Child
    • Events
  • Save/Load System
  • Item Spawner
  • Storage Chests
    • Chest Inventory
    • Chest Inventory UI
  • Using Armour
  • Shop System
    • Shop
    • Shop UI Manager
  • Cooking System
    • Create a new Recipe
  • UI Manager
  • Hotbar
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Input
  • Open on Awake/Close on Awake
  • Instantiate Item
  • Spawn Point
  • Remove Last Spawn
  • Animate Open/Close
  • Target to Animate
  • Open
  • Close
  • Data
  • Coins
  • Use PlayerPref to Save Data
  • Save Default Data
  • Restore Data
  • Events
  • OnSelected(GameObject):
  • OnOpen(GameObject)
  • OnClosed(GameObject)
  • Methods & Properties
  • bool EnableSelector
  • void ToggleSelector()
  • void Purchase(MItem item)
  • void _ReduceAmountSelected()
  • void SaveDefaultData()
  • void RestoreToDefaultData()
  • void SelectItem()
  • void _ChangeCurrentItemMaterial(bool Next)
  • void _ChangeCurrentItemMaterial(string Name)
  • void _ChangeCurrentItemMaterial(string Name, bool Next)
  • void _ChangeCurrentItemMaterial(int Index)
  • void _ChangeCurrentItemMaterial(int Index, bool Next)
  • void _ChangeCurrentItemMaterial(bool Next)
  • void _ChangeCurrentItemMesh(int Index)
  • void _ChangeCurrentItemMesh(int Index, bool Next)
  • void _ChangeCurrentItemMesh(string Name)
  • void _ChangeCurrentItemMesh(string Name, bool Next)
  • void _ChangeToScene(string SceneName)
  • void _ChangeToScene(string SceneIndex)
  • void AddItem(MItem item)
  • void AddItem(GameObject item)
  • void _RemoveItem(MItem item)
  • void _RemoveItem(string Name)
  • void _RemoveItem(int Index)

Was this helpful?

  1. ULTIMATE SELECTOR

Selector Manager

PreviousOverviewNextSelector Editor

Last updated 5 years ago

Was this helpful?

Overview

Is the global Manager, handles the Data, the Open and Close the selector, instantiate the Item. All other scripts must be childs gameobjects of the Selector Manager.

Parameters

Input

Key or Input from the Unity Input manager to Open and Close the Selector.

Open on Awake/Close on Awake

Start Open or Close when hit play.

Instantiate Item

Instantiate the Original GameObject of the Selected Item , if the Item does not have an Original GameObject it will instantiate the Item object itself.

Spawn Point

Transform reference the position to instantiate the Item. If this parameter is empty, it will instantiate using the Selector Manager Transform as position reference.

Remove Last Spawn

Remove the Last spawned item and It will add the new one.

Animate Open/Close

It will use Animation Transforms to animate the Target in an out when opening and closing the Selector.

Target to Animate

Which transform the Animations will be applied to.

Open

Animation Transform Asset to use as Open Animation.

Close

Animation Transform Asset to use as Close Animation.

Data

This is an Scriptable Object to save all the important values of the Selector.

Coins

Total of coins for the selector.

Use PlayerPref to Save Data

Save Default Data

Restore Data

Restore all the values from to the Default Data.

Events

OnSelected(GameObject):

Invoked when a item is selected. For dynamic methods, uses the Original GameObject as parameter.

OnOpen(GameObject)

Invoked when the Selector is Open. For dynamic methods, uses the Original GameObject as parameter.

As an Example you can check the Demo: Cards Linear Screen so see this Event on action.

OnClosed(GameObject)

Invoked when the Selector is Closed. For dynamic methods, uses the Original GameObject as parameter.

As an Example you can check the Demo: Cards Linear Screen so see this Event on action.

Methods & Properties

bool EnableSelector

Open/Close the selector.

void ToggleSelector()

Toggle On and Off the Selector (if it is open, close it, and vice versa)

void Purchase(MItem item)

Purchase the item, this method is usually called by the SelectorUI class on the Purchase button, which also will update the UI.

void _ReduceAmountSelected()

void SaveDefaultData()

Save to the Data the Default Data. it will use this as Starting point for the selector, and be used all those values as Restore Point. This is also used on the Save Default Data Button on the Selector Manager Inspector.

void RestoreToDefaultData()

Restore Data using the Default Data setted before on the SaveDefaultData() method

void SelectItem()

Select the Focused Item if is not locked and the amount is greater than zero, also instantiate it if Instantiate Item is enabled.

This is usually used by the Select Button on the UI..

void _ChangeCurrentItemMaterial(bool Next)

If the Item is using only one Material-Item, use this method instead of the ones listed below.

(GIF Example)

void _ChangeCurrentItemMaterial(string Name)

If the Selector is using a Data file, it will update the SaveData.

(GIF Example)

void _ChangeCurrentItemMaterial(string Name, bool Next)

If the Selector is using a Data file, it will update the SaveData.

(GIF Example)

void _ChangeCurrentItemMaterial(int Index)

If the Selector is using a Data file, it will update the SaveData.

(GIF Example)

void _ChangeCurrentItemMaterial(int Index, bool Next)

If the Selector is using a Data file, it will update the SaveData.

(GIF Example)

void _ChangeCurrentItemMaterial(bool Next)

If the Selector is using a Data file, it will update the SaveData.

If the Item is using only one Active-Mesh, use this method instead of the ones listed below.

(GIF Example)

void _ChangeCurrentItemMesh(int Index)

If the Selector is using a Data file, it will update the SaveData.

void _ChangeCurrentItemMesh(int Index, bool Next)

If the Selector is using a Data file, it will update the SaveData.

void _ChangeCurrentItemMesh(string Name)

If the Selector is using a Data file, it will update the SaveData.

void _ChangeCurrentItemMesh(string Name, bool Next)

If the Selector is using a Data file, it will update the SaveData.

void _ChangeToScene(string SceneName)

Change to the next scene using the scene name

void _ChangeToScene(string SceneIndex)

Change to the next scene using the scene index

void AddItem(MItem item)

Adds an Item at Runtime.

void AddItem(GameObject item)

void _RemoveItem(MItem item)

Removes an Item at Runtime.

void _RemoveItem(string Name)

Removes an Item at Runtime Using the Items “Name”

void _RemoveItem(int Index)

Removes an Item at Runtime Using the Items “Index”

You can enable 'Use ' and save the data there, but is recommended to use a better and secure 'Saving System'

Enable it to persistent save the Data using Class, but is recommended to use a better and secure 'Saving System' and connect it to the Data Asset.

Store all the Coins Items amount , Lock status, and , as the Restore/Default Data.

As an Example you can check the Demo: Boxes Radial Screen so see this Event on action working together with the method.

Example: Use it on the event and set it to false. so every time you select an item the selector will close.

Reduce the Amount of the selected item. Usually used on the Event. so when the item is selected also reduce by one the item.

...or by the OnClick/Touch an Item Event from the . (See Demo: BoxRadialScreen)

If the Current Item has an component, it change ALL the Material-Item on the list to the Next(true) or Before(false). If the Selector is using a Data file, it will update the SaveData.

If the Current Item has an component, it change an Active Material on the list to the Next Material using the Material-Item “Name”.

If the Current Item has an component, it change an Active Material on the list to the Next(true) Before(false) Material using the Material-Item “Name”.

If the Current Item has an component, it change an Active Material on the list to the Next Material using the Material Item “Index”.

If the Current Item has an component, it change an Active Material on the list to the Next(true) Before(false) Material using the Material Item “Index”.

If the Current Item has an component, it change ALL the Active Mesh items on the list to the Next(true) or Before(false).

If the Current Item has an component, it change an Active Mesh on the list to the Next Mesh using their “Index”.

If the Current Item has an component, it change an Active Mesh on the list to the Next Mesh using their “Index”.

If the Current Item has an component, it change an Active Mesh on the list to the Next Mesh using the Active-Mesh “Name”.

If the Current Item has an component, it change an Active Mesh on the list to the Next(true) Before(false) Mesh using the Active-Mesh “Name”.

Save data won’t work with runtime adding items

Adds an Item at Runtime, if the Item does not have an component on it it will add it

Save data won’t work with runtime adding items

Save data won’t work with runtime adding items

Save data won’t work with runtime adding items

⚠️
⚠️
⚠️
⚠️
PlayerPref
PlayerPref
MaterialChanger
ActiveMeshes
Selector Controller
Material Changer
Material Changer
Material Changer
Material Changer
Material Changer
ActiveMeshes
ActiveMeshes
ActiveMeshes
ActiveMeshes
ActiveMeshes
MItem
_ReduceAmountSelected()
OnSelected
OnSelected