示例#1
0
        public static float[] GetParamBlockValueColor(IIParamBlock paramBlock, string name)
        {
            var index = Tools.GetParamBlockIndex(paramBlock, name);

            if (index == -1)
            {
                return(null);
            }
            return(paramBlock.GetColor(index, 0).ToArray());
        }
示例#2
0
        public static float GetParamBlockValueFloat(IIParamBlock paramBlock, string name)
        {
            var index = Tools.GetParamBlockIndex(paramBlock, name);

            if (index == -1)
            {
                return(0);
            }
            return(paramBlock.GetFloat(index, 0));
        }