public static F3Drawcall Create(F3Panel panel, Material material, Texture txt, Shader sdr) { F3Drawcall f3Drawcall = Create(); f3Drawcall.panel = panel; f3Drawcall.mMaterial = material; f3Drawcall.mTexture = txt; f3Drawcall.mShader = sdr; return(f3Drawcall); }
private void OnEnable() { panel = this.transform.GetComponentInParent <F3Panel>(); panel.AddChild(this); }