Esempio n. 1
0
        void Update()
        {
            if (MyRenderer == null)
            {
                GetRenderer();
            }

            if (MyRenderer == null)
            {
                return;
            }

            float f = (float)FXDataProvider.GetInt(IntToBind);

            ShowWarning = false;
            if (!MyRenderer.sharedMaterial.HasProperty(IntPropertyName))
            {
                ShowWarning = true;
            }
            else
            {
                MyRenderer.sharedMaterial.SetFloat(IntPropertyName, f);
            }
        }
Esempio n. 2
0
 public override void UpdateBinding(VisualEffect component)
 {
     component.SetInt(IntProperty, FXDataProvider.GetInt(IntToBind));
 }
Esempio n. 3
0
 public override void UpdateBinding(VisualEffect component)
 {
     component.SetTexture(TextureProperty, FXDataProvider.GetAllBonesTexture());
     component.SetInt(BoneCountProperty, FXDataProvider.GetInt(FXDataProvider.INT_DATA_TYPE.BoneCount));
 }