• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.
Shuya

Looks Shuya

Download [35.11 MB]
Hi, there's a small bug in your 'hair color changer' script

Code:
        public override void Init()
        {
            try
            {
                _person = SuperController.singleton.GetSelectedAtom();
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }

Code:
!> Exception caught: System.NullReferenceException: Object reference not set to an instance of an object
  at LarrysArms.HairColorChanger.Init () [0x00000] in <filename unknown>:0


This should be:
Code:
        public override void Init()
        {
            try
            {
                _person = containingAtom;
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }
 
Hi, there's a small bug in your 'hair color changer' script

Code:
        public override void Init()
        {
            try
            {
                _person = SuperController.singleton.GetSelectedAtom();
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }

Code:
!> Exception caught: System.NullReferenceException: Object reference not set to an instance of an object
  at LarrysArms.HairColorChanger.Init () [0x00000] in <filename unknown>:0


This should be:
Code:
        public override void Init()
        {
            try
            {
                _person = containingAtom;
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }
thank you very much ! i think i need to remove it after i change the hair color.
 
Back
Top Bottom