Property is Null

Could someone please educate me on why _nodeAttrPool.poolName is null. (line 25). Thanks so much

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public struct NodeAttrPool  {

    private string _poolName;                                
    public string poolName{ get { return _poolName; }
                            set { value = _poolName;}}
    private Pool _poolGroup;                                    
    public Pool poolGroup{ get {return _poolGroup;}  
                           set {value =  _poolGroup;} }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


[System.Serializable]
public class NodeTile : NodeBase {


    private NodeAttrActivePrefab _nodeAttrActivePrefab;                                       
    public  NodeAttrActivePrefab  nodeAttrActivePrefab{get {return _nodeAttrActivePrefab;}}
    private NodeAttrPool _nodeAttrPool;                                       
    public  NodeAttrPool nodeAttrPool{get {return _nodeAttrPool;}}


    //
    // Constructor running base class constuctor
    public NodeTile(Vector3 worldPosition, int gridX, int gridY) 
        : base( worldPosition,  gridX,  gridY) {

        //
        // Why is this null
        _nodeAttrPool.poolName ="TESTpool";
        Debug.Log (_nodeAttrPool.poolName); // null , why is this null

    }

}

Wrong direction of assigment.

_poolXXX = value;

would be correct.

1 Like

Lol , thanks so much im an idiot