Inheritance: ScriptRuntime.Component
コード例 #1
0
 private void reset()
 {
     m_animationComponent         = null;
     m_meshRenderComponent        = null;
     m_spriteRenderComponent      = null;
     m_skinnedMeshRenderComponent = null;
     m_skeletonComponent          = null;
     m_particleRenderComponent    = null;
     m_projectorRenderComponent   = null;
     m_scriptComponent            = null;
     m_cameraComponent            = null;
     m_SoundSource   = null;
     m_EchoFilter    = null;
     m_LowPassFilter = null;
     m_ReverbFilter  = null;
 }
コード例 #2
0
 extern private static int ICall_SoundSource_GetRolloffMode(SoundSource self);
コード例 #3
0
 private static extern bool ICall_SoundSource_IsPaused(SoundSource self);
コード例 #4
0
 private static extern float ICall_SoundSource_GetSpread(SoundSource self);
コード例 #5
0
 private static extern float ICall_SoundSource_GetPitch(SoundSource self);
コード例 #6
0
 private static extern UInt32 ICall_SoundSource_GetLength(SoundSource self);
コード例 #7
0
 private static extern void ICall_SoundSource_Stop(SoundSource self);
コード例 #8
0
 private static extern void ICall_SoundSource_SetPriority(SoundSource self, int priority);
コード例 #9
0
 extern private static bool ICall_SoundSource_IsPlaying(SoundSource self);
コード例 #10
0
 extern private static void ICall_SoundSource_Pause(SoundSource self);
コード例 #11
0
 extern private static void ICall_SoundSource_Stop(SoundSource self);
コード例 #12
0
 extern private static void ICall_SoundSource_SetName(SoundSource self, String pMonoString, int loadpriority);
コード例 #13
0
 extern private static String ICall_SoundSource_GetName(SoundSource self);
コード例 #14
0
 extern private static bool ICall_SoundSource_IsAllLoaded(SoundSource self);
コード例 #15
0
 extern private static void ICall_SoundSource_SetRolloffMode(SoundSource self, int rolloffMode);
コード例 #16
0
 private static extern void ICall_SoundSource_SetName(SoundSource self, String pMonoString, int loadpriority);
コード例 #17
0
 private static extern void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
コード例 #18
0
 extern private static bool ICall_SoundSource_IsPaused(SoundSource self);
コード例 #19
0
 private static extern void ICall_SoundSource_SetSpread(SoundSource self, float spread);
コード例 #20
0
 extern private static void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
コード例 #21
0
 private static extern float ICall_SoundSource_GetDopplerLevel(SoundSource self);
コード例 #22
0
 extern private static float ICall_SoundSource_GetVolume(SoundSource self);
コード例 #23
0
 private static extern bool ICall_SoundSource_GetMute(SoundSource self);
コード例 #24
0
 extern private static void ICall_SoundSource_SetVolume(SoundSource self, float volume);
コード例 #25
0
 private static extern int ICall_SoundSource_GetPriority(SoundSource self);
コード例 #26
0
 extern private static bool ICall_SoundSource_GetMute(SoundSource self);
コード例 #27
0
 private static extern bool ICall_SoundSource_Is3D(SoundSource self);
コード例 #28
0
 extern private static void ICall_SoundSource_SetMute(SoundSource self, bool mute);
コード例 #29
0
        // - private function
        private void DeAssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = null;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = null;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = null;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = null;
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = null;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = null;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = null;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = null;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = null;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = null;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = null;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = null;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = null;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = null;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = null;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = null;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = null;
            }
#endif
        }
コード例 #30
0
 extern private static bool ICall_SoundSource_Is3D(SoundSource self);
コード例 #31
0
 private static extern void ICall_SoundSource_SetMute(SoundSource self, bool mute);
コード例 #32
0
 extern private static void ICall_SoundSource_Set3D(SoundSource self, bool is3D);
コード例 #33
0
 private static extern void ICall_SoundSource_SetPan(SoundSource self, float pan);
コード例 #34
0
 extern private static UInt32 ICall_SoundSource_GetLength(SoundSource self);
コード例 #35
0
 private static extern void ICall_SoundSource_SetPosition(SoundSource self, UInt32 position);
コード例 #36
0
 extern private static float ICall_SoundSource_GetPitch(SoundSource self);
コード例 #37
0
 private static extern void ICall_SoundSource_SetRolloffMode(SoundSource self, int rolloffMode);
コード例 #38
0
 extern private static void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
コード例 #39
0
 private static extern void ICall_SoundSource_SetVolume(SoundSource self, float volume);
コード例 #40
0
 extern private static float ICall_SoundSource_GetDopplerLevel(SoundSource self);
コード例 #41
0
 private static extern bool ICall_SoundSource_GetAutoPlay(SoundSource self);
コード例 #42
0
 extern private static void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
コード例 #43
0
 private static extern bool ICall_SoundSource_GetIgnoreEffect(SoundSource self);
コード例 #44
0
 extern private static float ICall_SoundSource_GetSpread(SoundSource self);
コード例 #45
0
 private static extern float ICall_SoundSource_GetMinDistance(SoundSource self);
コード例 #46
0
 extern private static void ICall_SoundSource_SetSpread(SoundSource self, float spread);
コード例 #47
0
 private static extern String ICall_SoundSource_GetName(SoundSource self);
コード例 #48
0
 extern private static int ICall_SoundSource_GetPriority(SoundSource self);
コード例 #49
0
 private static extern UInt32 ICall_SoundSource_GetPosition(SoundSource self);
コード例 #50
0
 extern private static void ICall_SoundSource_SetPriority(SoundSource self, int priority);
コード例 #51
0
 private static extern int ICall_SoundSource_GetRolloffMode(SoundSource self);
コード例 #52
0
 extern private static float ICall_SoundSource_GetMinDistance(SoundSource self);
コード例 #53
0
 private static extern float ICall_SoundSource_GetVolume(SoundSource self);
コード例 #54
0
 private static extern void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
コード例 #55
0
 private static extern bool ICall_SoundSource_IsAllLoaded(SoundSource self);
コード例 #56
0
 private static extern void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);
コード例 #57
0
        // - private function
        private void AssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = component as AnimationComponent;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = component as MeshRenderComponent;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = component as SkinnedMeshRenderComponent;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = component as ProjectorRenderComponent;
                m_projectorRenderComponent.EnableProjector = true;
                m_projectorRenderComponent.SetMaterialID(0, "sys:projector.material", false);
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = component as SkeletonComponent;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = component as ParticleRenderComponent;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = component as SpriteRenderComponent;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = component as ScriptComponent;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = component as CameraComponent;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = component as SoundSource;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = component as SoundReverbZone;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = component as SoundHighPassFilterComponent;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = component as SoundLowPassFilterComponent;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = component as SoundChorusFilterComponent;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = component as SoundDistortionFilterComponent;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = component as SoundEchoFilterComponent;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = component as SoundReverbFilterComponent;
            }
#endif
        }
コード例 #58
0
 private static extern void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
コード例 #59
0
 private static extern void ICall_SoundSource_SetMinDistance(SoundSource self, float minDistance);
コード例 #60
0
 extern private static void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);