protected virtual void Start() { if (!Application.isPlaying) { return; } SF_SetKey(Key.Key); //For GL based platforms - Sets a number to use for Unity specific texture management. Adjust this number if //you start to experience black and/or missing textures. SF_SetTextureCount(500); DontDestroyOnLoad(this.gameObject); SFMgr = new SFManager(InitParams); if (SFMgr.IsSFInitialized()) { InitParams.Print(); GL.IssuePluginEvent(0); GL.InvalidateState(); } Movie = createMovie(); if (WhenToRender == RenderTime.EndOfFrame) { StartCoroutine("CallPluginAtEndOfFrame"); } }
private void Update() { if (movie == null) { if (scaleformCamera == null) return; var manager = scaleformCamera.GetSFManager(); if (manager == null || !manager.IsSFInitialized()) return; SFMovieCreationParams creationParams = SFCamera.CreateMovieCreationParams(FlashMovieFile, MovieDepth, BackgroundColor, OverrideBackgroundColor); creationParams.IsInitFirstFrame = InitFirstFrame; creationParams.TheScaleModeType = ScaleMode; movie = createMovie(creationParams); } }
protected void Start() { if (Application.isPlaying) { //DontDestroyOnLoad(gameObject); SFMgr = new SFManager(InitParams); SFMgr.Init(); // SFMgr.InstallDelegates(); GL.IssuePluginEvent(0); GL.InvalidateState(); Movie = createMovie(); StartCoroutine(CallPluginAtEndOfFrames()); } }
private void Update() { if (movie == null) { if (scaleformCamera == null) { return; } var manager = scaleformCamera.GetSFManager(); if (manager == null || !manager.IsSFInitialized()) { return; } SFMovieCreationParams creationParams = SFCamera.CreateMovieCreationParams(FlashMovieFile, MovieDepth, BackgroundColor, OverrideBackgroundColor); creationParams.IsInitFirstFrame = InitFirstFrame; creationParams.TheScaleModeType = ScaleMode; movie = createMovie(creationParams); } }
protected void Start() { if (Application.isPlaying) { DontDestroyOnLoad(gameObject); SFMgr = new SFManager(InitParams); SFMgr.Init(); // SFMgr.InstallDelegates(); GL.IssuePluginEvent(0); GL.InvalidateState(); Movie = new ScaleformMovie(SFMgr, createMovieCreationParams(FlashMovieFile)); StartCoroutine(CallPluginAtEndOfFrames()); } }
protected virtual void Start() { if (!Application.isPlaying) return; SF_SetKey(Key.Key); //For GL based platforms - Sets a number to use for Unity specific texture management. Adjust this number if //you start to experience black and/or missing textures. SF_SetTextureCount(500); DontDestroyOnLoad(this.gameObject); SFMgr = new SFManager(InitParams); if (SFMgr.IsSFInitialized()) { InitParams.Print(); GL.IssuePluginEvent(0); GL.InvalidateState(); } Movie = createMovie(); if (WhenToRender == RenderTime.EndOfFrame) StartCoroutine("CallPluginAtEndOfFrame"); }