예제 #1
0
        public AfterEffectsInstance BindVisibility(Graphic graphic, string name)
        {
            int index = _resource.FindIndex(AfterEffectsCurveSet.ValueType.Bool, name);

            if (index >= 0)
            {
                if (_graphicVisibilityCurves == null)
                {
                    _graphicVisibilityCurves = new List <GraphicCurve>(8);
                }
                var curve = new GraphicCurve(graphic, index);
                _graphicVisibilityCurves.Add(curve);
            }
            else
            {
                Debug.LogError(name + " not found in CurveSet");
            }
            return(this);
        }
예제 #2
0
        protected static void CreateGraphicCurve()
        {
            GameObject go = CreateGameObject("GraphicCurve", true);

            GraphicCurve curve = go.AddComponent <GraphicCurve>();
        }