virtual protected void Awake() { videoPlayer = GetComponent <VideoPlayer>(); if (videoPlayer == null) { Debug.LogError("no video player for " + name + " ?", transform); } if (clips != null && clips.Length > 9) { videoPlayer.clip = clips[0]; } vMesh = (HelperVisibleMesh)HelperVisible.createVisibility(this, VisibilityMode.MESH); MeshRenderer render = vMesh.getRender(); videoPlayer.targetMaterialRenderer = render; Vector3 lScale = render.transform.localScale; lScale *= scale; render.transform.localScale = lScale; //videoPlayer.loopPointReached += onLoop; //meshCanvas = HalperComponentsGenerics.getComponentContext<MeshRenderer>(transform, "canvas"); }
protected override void buildCapacity() { base.buildCapacity(); Debug.Assert(owner != null, GetType() + ":" + name); visir = HelperVisible.createVisibility(owner as MonoBehaviour, getVisibilityMode()); }
private void Awake() { h = (HelperVisibleUi)HelperVisible.createVisibility(this, VisibilityMode.UI); h.setTextLabel(VersionManager.getFormatedVersion()); h.show(); }
private void Awake() { visirUi = (HelperVisibleUi)HelperVisible.createVisibility(this, VisibilityMode.UI); created(); }